David Reid
99c96c958e
PulseAudio: Remove some unnecessary code.
2020-11-03 19:05:30 +10:00
David Reid
d8536197c4
PulseAudio: Minor code restructure.
2020-11-03 19:01:56 +10:00
David Reid
2dc604ecde
PulseAudio: Always use the PA_STREAM_ADJUST_LATENCY flag on streams.
...
This should fix the following puplic issues:
* https://github.com/mackron/miniaudio/issues/106
* https://github.com/mackron/miniaudio/issues/187
2020-11-03 18:51:31 +10:00
David Reid
27a7fea804
Update dr_flac.
2020-11-01 21:49:01 +10:00
David Reid
89e5ae2144
Update dr_libs.
2020-11-01 21:43:34 +10:00
David Reid
c10e21c119
Fix a const warning.
2020-11-01 21:04:16 +10:00
David Reid
12c7babea1
Fix compilation warnings.
2020-11-01 20:53:16 +10:00
David Reid
a5612b4f9c
Update c89atomic.
2020-11-01 20:50:59 +10:00
David Reid
ab2fd23beb
Improve compiler support for older versions of GCC.
2020-11-01 20:40:59 +10:00
David Reid
704dccf65f
Fix compilation errors on BSD.
2020-11-01 20:18:43 +10:00
David Reid
b61ea2461e
WebAudio: Add support for default device detection.
...
Public issue https://github.com/mackron/miniaudio/issues/126
2020-11-01 18:50:47 +10:00
David Reid
a1052923b0
WinMM, DirectSound: Add support for default device detection.
...
Public issue https://github.com/mackron/miniaudio/issues/126
2020-11-01 18:46:23 +10:00
David Reid
9b4e524b3f
JACK: Add support for default device detection.
...
Public issue https://github.com/mackron/miniaudio/issues/126
2020-11-01 18:29:14 +10:00
David Reid
7c937c491e
ALSA: Add basic support for detecting default devices.
...
Public issue https://github.com/mackron/miniaudio/issues/126
2020-11-01 17:55:43 +10:00
David Reid
edfc9bbcaf
ALSA: Fix a bug in ma_context_get_device_info().
2020-11-01 17:29:48 +10:00
David Reid
c4099c86c6
PulseAudio: Add support for detecting default devices.
...
Public issue https://github.com/mackron/miniaudio/issues/126
2020-11-01 17:09:36 +10:00
David Reid
c844455059
Fix bugs with ma_decoder_init_file*().
...
Public issue https://github.com/mackron/miniaudio/issues/213
2020-11-01 15:19:35 +10:00
David Reid
e808a67777
Refactor to the PulseAudio backend.
...
* The main loop is now handled properly by pa_threaded_mainloop.
* Rather than waiting for operations to complete inline, the main
loop is now iterated on a separate thread.
* Data is now written and read to and from the relevant stream via
callbacks rather than a hacky loop.
* Code overall has been simplified.
* Includes a rant about bad API design in PulseAudio.
This should hopefully address these public issues:
* https://github.com/mackron/miniaudio/issues/106
* https://github.com/mackron/miniaudio/issues/187
2020-11-01 14:30:06 +10:00
David Reid
3018ba3ee5
Some refactoring to the PulseAudio backend.
...
The PulseAudio mainloop and context objects have been moved out of the
device and into the context.
2020-10-31 16:43:25 +10:00
David Reid
ae88112e4f
Version 0.10.21
2020-10-30 20:23:21 +10:00
David Reid
447e22e09f
Update dr_libs.
2020-10-30 20:20:29 +10:00
David Reid
d2a663a9aa
Update revision history.
2020-10-30 20:05:08 +10:00
David Reid
25bd2576bf
Core Audio: Improvements to data format selection.
...
Public issue https://github.com/mackron/miniaudio/issues/201
2020-10-30 19:56:36 +10:00
David Reid
cd1a3decfa
Reduce some stack usage.
2020-10-28 18:30:14 +10:00
David Reid
62a7c6a805
Check the result of ReadFile() to silence some static analysis warnings
2020-10-28 18:24:28 +10:00
David Reid
e67953d6f2
Fix some bugs due to null pointer dereferences.
...
Public issue https://github.com/mackron/miniaudio/issues/209
2020-10-28 18:17:53 +10:00
David Reid
64a1941f8e
Reduce some stack allocation space.
2020-10-28 18:16:23 +10:00
David Reid
11e1be7887
Use a consistently sized stack allocated buffer.
2020-10-28 18:03:43 +10:00
David Reid
069549254d
Rename some APIs from previous commit.
...
This uses the "enabled" notion rather than "available" as I think it's
a bit clearer in terms of enabled at compile time rather than available
at run time.
Public issue https://github.com/mackron/miniaudio/issues/211
2020-10-25 09:54:58 +10:00
David Reid
e59ee1e773
Add support for retrieving available backends at run-time.
...
The following APIs have been added:
* ma_is_backend_available()
* ma_get_avaialable_backends()
Public issue https://github.com/mackron/miniaudio/issues/211
2020-10-25 09:06:57 +10:00
David Reid
52e45237ac
Fix some typos.
2020-10-13 17:29:31 +10:00
David Reid
7090c1b773
Core Audio: Fix an error from an earlier commit.
...
Public issue https://github.com/mackron/miniaudio/issues/201
2020-10-11 21:51:09 +10:00
David Reid
f6beb7993c
Update revision history.
2020-10-11 11:46:47 +10:00
David Reid
016eed9698
Tabs to spaces.
2020-10-11 11:38:46 +10:00
David Reid
e972a03b3f
Core Audio: Add notes regarding the Apple notarization process.
2020-10-11 11:36:57 +10:00
David Reid
6ecb728326
Core Audio: Fix a bug when using multiple contexts.
2020-10-11 10:56:53 +10:00
David Reid
0ae8adc1c0
Core Audio: Remove logic that forces the device's original sample rate.
2020-10-11 10:27:09 +10:00
David Reid
5a20743a03
Core Audio: Fix a compilation warning.
2020-10-11 10:08:03 +10:00
David Reid
ea82457317
Update revision history.
2020-10-08 18:56:54 +10:00
Will Wong
78dab3643c
Fix loopback typo
2020-10-08 13:20:12 +09:00
David Reid
634cdb028f
Version 0.10.20
2020-10-06 17:43:19 +10:00
David Reid
d20c3bf5a9
Fix the UWP build.
...
Public issue https://github.com/mackron/miniaudio/issues/199
2020-10-05 07:55:20 +10:00
David Reid
4b32673701
Update documentation to use more professional language.
2020-09-30 20:10:26 +10:00
David Reid
5b82783d19
Version 0.10.19
2020-09-22 21:43:03 +10:00
David Reid
35beabb8d7
Fix a bug in ma_decoder_seek_to_pcm_frames().
...
This bug is that the function is never returning MA_SUCCESS even when
successful.
2020-09-21 18:01:46 +10:00
David Reid
7a72cc3f84
WASAPI: Return an error when the native format is not supported.
2020-09-20 13:26:35 +10:00
David Reid
c50d5435e1
Store the sample rate in the ma_lpf and ma_hpf structures.
2020-09-12 12:56:41 +10:00
David Reid
4203697b38
Version 0.10.18
2020-08-30 11:58:18 +10:00
David Reid
ecc0cb3418
Update links to point to the new repository location.
2020-08-30 11:56:37 +10:00
David Reid
6562e6a0c8
Update FLAC decoder.
2020-08-30 11:41:37 +10:00