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
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
David Reid
375cdd68df
Fix subtle errors with device enumeration on most backends.
2017-11-11 18:02:05 +10:00
David Reid
5c7bb0dc98
Update the advanced config example with backend selection.
2017-11-11 17:58:40 +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
8fdb156d57
Add advanced config example.
2017-11-11 17:01:49 +10:00
David Reid
91822633c3
Simplify the simple playback example.
2017-11-11 17:01:27 +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
David Reid
77751bd077
ALSA: Fix an error with channel mapping.
2017-11-11 09:03:42 +10:00
David Reid
5aadfef82b
ALSA: Fix the returned device count when enumerating devices.
2017-11-11 08:11:14 +10:00
David Reid
3dbaa4725a
ALSA: Fix a bug with hardware params.
...
The buffer size should be set before periods.
2017-11-10 22:37:14 +10:00
David Reid
eb0e94fced
Clean up and fix an incorrect error message.
2017-11-10 20:03:00 +10:00
David Reid
6348588787
Merge branch 'issue_1' into 0.5
2017-11-09 21:25:15 +10:00
David Reid
d736d65465
ALSA: Fix a hardware parameter issue with dmix devices.
...
Relates to issue #1 .
2017-11-09 21:14:07 +10:00
David Reid
4fec172178
Typo.
2017-11-08 21:52:48 +10:00
David Reid
7b3e89d459
ALSA: Improvements to device enumeration.
...
* By default, device enumeration will now only enumerate over unique
card/device pairs. Applications can enable verbose device
enumeration by setting the alsa.useVerboseDeviceInteration context
config variable.
* By default, the "null" device is excluded from enumeration. This can
be changed by setting the alsa.includeNullDevice context config
variable.
Relates to issue #2 .
2017-11-08 21:48:37 +10:00
David Reid
56ea28881f
ALSA: Don't set a start threshold when using mmap mode.
...
Possibly related to issue #1 .
2017-11-08 07:54:02 +10:00
David Reid
60a8e3fdb5
API CHANGE: Add support for context configuration.
...
This adds the mal_context_config structure and changes the
mal_context_init() API to take a pointer to a config object.
2017-11-07 21:49:50 +10:00
David Reid
9f4a9e4280
ALSA: Bug fixes for the new device iteration system.
2017-11-07 21:18:51 +10:00
David Reid
4c434f1591
ALSA: Another attempt at fixing mmap mode.
2017-11-07 19:39:47 +10:00
David Reid
8f932b3c22
ALSA: Simplify device enumeration.
2017-11-06 21:58:52 +10:00
David Reid
3a603b586e
Remove unnecessary #include from the enumeration example.
2017-11-06 21:58:24 +10:00