David Reid
577123762b
Fix a double release bug.
2021-02-05 20:34:07 +10:00
David Reid
553c7f0093
Add some new APIs.
...
* ma_sound_set_start_time_in_milliseconds()
* ma_sound_set_stop_time_in_milliseconds()
* ma_sound_group_set_start_time_in_milliseconds()
* ma_sound_group_set_stop_time_in_milliseconds()
2021-02-05 20:29:06 +10:00
David Reid
76640272be
Rename some APIs for consistency with other APIs.
...
* ma_sound_set_fade_in_frames() > ma_sound_set_fade_in_pcm_frames()
* ma_sound_get_time_in_frames() > ma_sound_get_time_in_pcm_frames()
* ma_sound_set_start_time() > ma_sound_set_start_time_in_pcm_frames()
* ma_sound_set_stop_time() > ma_sound_set_stop_time_in_pcm_frames()
* ma_sound_group_set_fade_in_frames() > ma_sound_group_set_fade_in_pcm_frames()
* ma_sound_group_get_time_in_frames() > ma_sound_group_get_time_in_pcm_frames()
* ma_sound_group_set_start_time() > ma_sound_group_set_start_time_in_pcm_frames()
* ma_sound_group_set_stop_time() > ma_sound_group_set_stop_time_in_pcm_frames()
2021-02-05 19:33:37 +10:00
David Reid
cc2365b2b8
Fix a warning due to use of non-standard functionality.
2021-02-05 19:19:33 +10:00
David Reid
59db61d9f3
Add ma_sound_get_engine().
2021-02-05 19:17:28 +10:00
David Reid
fbb953ff01
Fix an unused variable warning.
2021-02-05 18:30:23 +10:00
David Reid
67786740c4
PulseAudio: Fix a failed assertion.
2021-02-05 18:00:02 +10:00
David Reid
3265107cbd
Fix a bug in ma_sound_is_playing().
...
This bug is due to the current time not being taken into account when
determining the node state.
Public issue https://github.com/mackron/miniaudio/issues/269
2021-02-05 17:16:30 +10:00
David Reid
ee73374dab
Fix a documentation error.
2021-02-04 19:55:23 +10:00
David Reid
ad919ebae6
WASAPI: Don't post an error when no exclusive format can be found.
2021-02-03 17:25:20 +10:00
David Reid
96db99f6eb
Update revision history.
2021-02-02 18:51:22 +10:00
David Reid
e98ec370a1
Merge branch 'dev' of https://github.com/mackron/miniaudio into dev
2021-02-02 18:49:59 +10:00
David Reid
ea7f42ead0
Update revision history.
2021-02-02 18:49:44 +10:00
David Reid
3191f1a20a
iOS: Fix a typo.
2021-02-02 18:16:29 +10:00
David Reid
781ce447fd
iOS: Experimental fixes to automatic stream routing.
...
Public issue https://github.com/mackron/miniaudio/issues/101
2021-02-02 18:12:52 +10:00
David Reid
c5469536c6
iOS: Remove an experimental conditional.
2021-02-02 17:39:41 +10:00
David Reid
2b3f860304
WASAPI: Refactoring to automatic stream routing system.
...
Public issue https://github.com/mackron/miniaudio/issues/258
2021-02-01 21:23:06 +10:00
David Reid
78a226107c
Remove some old unused code.
2021-02-01 17:22:46 +10:00
David Reid
bb63705a5a
Revert an experimental fix for WASAPI automatic stream routing.
2021-02-01 17:22:17 +10:00
David Reid
1bd587e59f
Fix the C++ build.
2021-01-31 19:52:35 +10:00
David Reid
56abb1100b
Rename a badly named variable.
2021-01-31 18:13:35 +10:00
David Reid
2f46aaf126
Rename a callback.
2021-01-31 18:09:03 +10:00
David Reid
8a8917dfe9
Remove the "usingDefault*" members of ma_device.
2021-01-31 18:01:07 +10:00
David Reid
1c493d6fa4
More post-refactoring cleanup.
2021-01-31 17:58:08 +10:00
David Reid
6c74b309c9
Cleanup old backend callback stuff.
2021-01-31 17:40:31 +10:00
David Reid
81ab94685b
sndio: Migrate over to the new backend callback system.
2021-01-31 17:13:36 +10:00
David Reid
7023f7e7fe
audio4: Migrate over to the new backend callback system.
2021-01-31 16:28:15 +10:00
David Reid
c68700baaf
OSS: Migrate over to the new backend callback system.
2021-01-31 14:16:13 +10:00
David Reid
0809d8fa3b
Minor refactoring for buffer size calculations.
2021-01-31 11:27:53 +10:00
David Reid
b2d71b9a10
OpenSL: Fix compilation errors.
2021-01-31 10:20:12 +10:00
David Reid
c715ead0e8
Minor simplification to the custom backend example.
2021-01-31 10:17:28 +10:00
David Reid
ddb8f845f7
AAudio: Migrate over to the new backend callback system.
2021-01-31 10:17:06 +10:00
David Reid
3391a4826f
OpenSL: Migrate over to the new backend callback system.
2021-01-30 22:25:41 +10:00
David Reid
375b942ffd
ALSA: Migrate over to the new backend callback system.
2021-01-30 20:14:00 +10:00
David Reid
154da2d6ed
Merge branch 'dev' of https://github.com/mackron/miniaudio into dev
2021-01-30 15:21:12 +10:00
David Reid
4c594e325e
Update revision history.
2021-01-30 15:21:03 +10:00
David Reid
f8659b2a41
Core Audio: Migrate to the new backend callback system.
2021-01-30 13:37:27 +10:00
David Reid
626463a13e
Fix a bug where a base node is being uninitialized twice.
2021-01-29 17:40:14 +10:00
David Reid
6281ed3165
Add some optimizations to inlined sounds.
2021-01-28 17:59:28 +10:00
David Reid
0f29839549
Remove the notification parameter from ma_sound_init_from_file().
...
This is buggy and unsafe. A complete rethink of the resource management
notification system needs to be done.
2021-01-28 17:46:09 +10:00
David Reid
8f6f72f188
Fix compilation error.
2021-01-27 18:12:58 +10:00
David Reid
1acbd524cc
WASAPI: Fix a potential deadlock with exclusive + duplex mode.
2021-01-26 18:41:01 +10:00
David Reid
e3536a1c25
Update revision history.
2021-01-26 18:28:35 +10:00
David Reid
8cd72f46a0
Temporary hack to fix some clicking glitches relating to resampling.
2021-01-26 17:21:31 +10:00
David Reid
243df7ebe0
Fix a copy/paste bug in ma_sound/group_set_positioning().
2021-01-26 15:12:04 +10:00
David Reid
3b3f60ab67
Yet another refactor to the PulseAudio backend.
...
Public issue https://github.com/mackron/miniaudio/issues/262
2021-01-26 14:30:27 +10:00
David Reid
a364b4ef96
Fix a bug with pitch shifting.
...
This bug results in the first period of samples being pitched at 1.0
regardless of whether or not ma_sound_set_pitch() had been called. What
happens is that the first period is processed at a rate of 1.0, and
then the pitch is applied after the fact. Then, the next period comes
along and resamples at the pitch set by ma_sound_set_pitch() which
results in a harsh sounding glitch.
2021-01-26 09:27:49 +10:00
David Reid
9fcb167476
Fix a bug relating to doppler pitching.
2021-01-26 08:20:51 +10:00
David Reid
bb512a8fbe
WASAPI: Fix a bug introduced in the previous commit.
...
This was resulting in a loop consuming 100% of the CPU.
2021-01-26 08:15:37 +10:00
David Reid
ee2e769406
WASAPI: Another attempt at fixing exclusive mode.
...
Public issue https://github.com/mackron/miniaudio/issues/265
2021-01-26 07:46:36 +10:00