Commit Graph

296 Commits

Author SHA1 Message Date
David Reid f2b59e8135 Fix a typo.
Fixes issue #7
2017-12-02 10:01:58 +10:00
David Reid 585ad04812 SDL: Fix incorrect buffer size calculations. 2017-11-24 21:43:11 +10:00
David Reid f47fa01c00 Add SDL to mal_get_backend_name(). 2017-11-23 18:31:05 +10:00
David Reid 695dc2b902 Fix VC6 build. 2017-11-21 19:34:17 +10:00
David Reid 3acd03b133 Fix a bug in mal_device_start() where the wrong value is returned.
This issue affects the OpenSL and SDL backends.
2017-11-21 06:34:21 +10:00
David Reid 2eebeda814 Fix an error with the SDL 1.2 backend. 2017-11-20 21:45:41 +10:00
David Reid 54c6842eff Update documentation. 2017-11-19 19:36:50 +10:00
David Reid 4ae623e9b4 Add some early work on tracking the name of devices.
This commit implements a generic method for determining the name which
simply performs an enumeration and compares against IDs. The problem
with this technique is that it cannot know the name of the default
device without help from the backend.
2017-11-19 15:50:12 +10:00
David Reid ef8c2c2d00 Update the title. 2017-11-19 12:18:06 +10:00
David Reid 7d5a59ee50 Update build instructions for Emscripten. 2017-11-19 12:13:29 +10:00
David Reid 4eb4077add Fix typo. 2017-11-19 12:09:53 +10:00
David Reid c340035fe6 Polish the SDL backend and the Emscripten build.
* Remove dependency on SDL.h where possible
 * Use run-time linking where possible
 * Support both SDL 1.2 and SDL 2
 * Add device enumeration when using SDL 2

The Emscripten build currently uses SDL 1.2 because it avoids the need
for "-s USE_SDL=2" when compiling. This may change later if there's
ever a need or if there's enough demand.
2017-11-19 12:04:58 +10:00
David Reid fbecb5dedf Initial work on an experimental SDL backend for Emscripten. 2017-11-18 22:29:15 +10:00
David Reid 0f409ac32c Update the multi_playback example to include FLAC and Vorbis. 2017-11-18 16:26:45 +10:00
David Reid 5de1079427 Get jar_mod and jar_xm compiling with MSVC. 2017-11-18 15:19:36 +10:00
David Reid 7649aa5348 Add jar_mod and jar_xm to readme. 2017-11-18 15:18:49 +10:00
David Reid 8c7e9fd6b2 Merge pull request #6 from r-lyeh/master
extend with PD MOD/XM player
2017-11-18 14:53:16 +10:00
David Reid 1e18d68fd5 Update log. 2017-11-18 11:51:07 +10:00
David Reid 3f45def36b Don't use run-time linking of pthread on Android nor Emscripten. 2017-11-18 11:44:58 +10:00
David Reid ce05440620 Fix compilation errors and warnings with the Android build. 2017-11-18 11:28:06 +10:00
David Reid 3bf830079f Don't use OSS with Emscripten. 2017-11-18 10:23:36 +10:00
David Reid 132af6ff6f Add APIs for getting friendly names of backends and formats. 2017-11-18 10:03:36 +10:00
David Reid a0776ec3e0 Disable backends based on the availability of development packages. 2017-11-17 20:16:54 +10:00
David Reid ec2bbe5995 Fix typo. 2017-11-17 19:18:48 +10:00
David Reid 2c457137ac Add dr_flac and stb_vorbis to extras. 2017-11-17 18:51:08 +10:00
David Reid 7a0c89bd3c Update dr_wav. 2017-11-17 18:49:14 +10:00
r-lyeh e9442b0e13 Update multi_playback.c 2017-11-16 15:34:50 +01:00
r-lyeh 37491c1fd8 extend with PD MOD/XM player 2017-11-16 15:37:42 +01:00
David Reid 88071f0c62 Update change log. 2017-11-16 21:41:23 +10:00
David Reid 0a69454845 Improve auto-generation of format conversion routines. 2017-11-16 21:36:04 +10:00
David Reid 77128b0a05 Improvements to f32 -> u8/s16/s24/s32 conversion routines.
Not quite sure what I was originally thinking with these. Much better
now.
2017-11-16 20:24:02 +10:00
David Reid 1ff3fa7d4c Fix some warnings. 2017-11-16 19:32:42 +10:00
David Reid 0419a51651 Fix a bug in mal_src_read_frames_ex(). 2017-11-16 19:15:48 +10:00
David Reid cc04821ba6 Add support for dynamically adjusting sample rates for SRC/DSP. 2017-11-15 21:46:41 +10:00
David Reid a08b942ed9 Add support for flushing the internal buffers when reading from dsp/src 2017-11-14 20:29:22 +10:00
David Reid 0ee4296dcc Fix build for some versions of MinGW. 2017-11-13 21:33:54 +10:00
David Reid 6ca0ec2032 Improvements to event and thread APIs. 2017-11-13 21:13:24 +10:00
David Reid 824e3a4699 API CHANGE: SRC/DSP callbacks now take a pointer to a mal_src/mal_dsp. 2017-11-13 20:49:34 +10:00
David Reid 21736d59b0 Fix a stale comment. 2017-11-13 20:37:40 +10:00
David Reid 3ede2b1f88 API CHANGE: Expose and improve mutex APIs. 2017-11-13 20:35:14 +10:00
David Reid c8cd85ebde Merge pull request #4 from gen2brain/master
Add macOS library names
2017-11-13 18:38:56 +10:00
Milan Nikolic 1f78b7979d Add macOS library names 2017-11-12 15:15:25 +01:00
David Reid c519430bfa Update change log. 2017-11-12 14:15:54 +10:00
David Reid 87efb75c94 Expose mutex APIs. 2017-11-12 12:52:43 +10:00
David Reid 409eab0f28 Add mal_convert_frames().
This API is a helper for doing a bulk format conversion in one go.
2017-11-12 11:39:40 +10:00
David Reid 975b8ee393 Bump version. 2017-11-11 09:52:06 +10:00
David Reid 15da6a79c7 Stop trying to silence a non-warning. 2017-11-11 09:51:02 +10:00
David Reid 847392496a Add a note to the readme to make it clear mini_al does not load files. 2017-11-11 09:46:47 +10:00
David Reid 8c53756cac Clean up some GCC warnings for the BSD build. 2017-11-11 18:21:36 +10:00
David Reid 49b0104329 OSS: Fix a bug when starting a playback device. 2017-11-11 18:15:41 +10:00