David Reid
8727d3d8ba
Clean up.
2017-12-03 11:10:28 +10:00
David Reid
cfb3a64010
ALSA: Experimental work on device-specific default buffer sizes.
2017-12-03 10:34:13 +10:00
David Reid
0b2967c278
Add mal_dsp_config_init().
2017-12-03 07:58:20 +10:00
David Reid
63cdc5efe9
Improvements to the OpenAL backend.
2017-12-02 14:14:37 +10:00
David Reid
ac00f05825
Add support for compile-time linking for OpenAL.
2017-12-02 10:13:01 +10:00
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
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
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
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
David Reid
375cdd68df
Fix subtle errors with device enumeration on most backends.
2017-11-11 18:02:05 +10:00
David Reid
5b24501a28
WASAPI/UWP: Fix errors with device enumeration.
...
This is the same issue as the earlier commit that fixes the non-UWP
enumeration for WASAPI.
2017-11-11 17:10:37 +10:00
David Reid
acef567220
WASAPI: Fix an error with device enumeration.
...
There are two problems with this:
* The pInfo buffer is being accessed when set to NULL
* The count is not getting set correctly when pInfo = NULL
2017-11-11 16:59:17 +10:00
David Reid
e3e1ab19ed
API CHANGE: Remove alsa.preferPlugHW config.
...
This config doesn't really make sense any more because we are now using
dmix/dsnoop for shared mode, and hw for exclusive mode. Format
conversion is now done via mini_al itself which makes plughw pretty
much useless for us at this point.
2017-11-11 15:03:27 +10:00
David Reid
330c5fe9d9
ALSA: Don't exclude the null device by default.
...
Having thought about this, it feels like a bad idea to exclude devices
by default because it might get a bit confusing for the end user. The
option to exclude the null device has been swapped around, so now the
config is called "excludeNullDevice" rather than "includeNullDevice".
2017-11-11 07:03:13 +10:00
David Reid
67f1f29b7b
Change log.
2017-11-11 06:38:30 +10:00