Commit Graph

2381 Commits

Author SHA1 Message Date
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
David Reid 47dccc520e iOS: Fix a compilation warning with MA_DEBUG_OUTPUT. 2021-01-25 21:21:41 +10:00
David Reid d6a56e40f0 iOS: A small change to the experimental fix from the previous commit. 2021-01-25 21:13:00 +10:00
David Reid 9ec3887479 iOS: Experiment with some improvements to automatic stream routing. 2021-01-25 21:04:43 +10:00
David Reid 09f2f9b827 Update logging messages for capture mode. 2021-01-25 20:37:30 +10:00
David Reid a74385a21b WASAPI: Try fixing a deadlock in exclusive mode.
Public issue https://github.com/mackron/miniaudio/issues/265
2021-01-25 19:21:45 +10:00
David Reid 1ceecebb57 WASAPI: Add some debug output for WASAPI and automatic stream routing.
Public issue https://github.com/mackron/miniaudio/issues/258
2021-01-25 18:58:54 +10:00
David Reid bd80a409d3 Remove some stale and misleading comments. 2021-01-25 16:04:53 +10:00
David Reid 78910a922a Simplify some APIs. 2021-01-25 15:39:42 +10:00
David Reid d571435566 Remove a debugging printf(). 2021-01-25 15:02:55 +10:00
David Reid cfff5f3192 Add support for angular attenuation to the spatializer. 2021-01-25 15:01:40 +10:00
David Reid 565131e645 Add some internal functions for converting between radians and degrees.
These are in preparation for some spatialization functionality.
2021-01-25 14:02:20 +10:00
David Reid 525dd7cb23 Add support for multiple listeners. 2021-01-25 11:38:18 +10:00
David Reid 33025bace2 Add support for doppler effect to the engine. 2021-01-25 10:12:05 +10:00
David Reid 4cdd892c54 Prep work in preparation for doppler effect. 2021-01-25 09:18:22 +10:00
David Reid 14c1346dc1 Fix date on the revision history. 2021-01-25 07:51:05 +10:00
David Reid 9677cdc1e9 Initial work on spatialization.
This does not yet support the following:

  * Cone based attenuation
  * Doppler effect
  * Multiple listeners
2021-01-24 21:06:15 +10:00
David Reid 3b3e18d8ec Add MA_FLT_MAX in preparation for some work on the high level API. 2021-01-24 17:42:07 +10:00
David Reid 8bd061b6c8 Add support for channel maps to ma_convert_pcm_frames_channels_f32(). 2021-01-24 16:54:33 +10:00
David Reid 48282d24fa Add a clarifying comment. 2021-01-24 16:53:34 +10:00
David Reid f040e3a1c1 Clean up in preparation for some spatialization work. 2021-01-24 09:03:32 +10:00
David Reid 722089d928 Fix the duplex_effect example.
This had the naming of source and excite the wrong way around.
2021-01-24 09:00:43 +10:00
David Reid 9ab7866237 Minor changes to resource_manager_advanced example. 2021-01-22 09:32:54 +10:00
David Reid f194a8bb59 Fix a bug in the resource_manager_advanced example. 2021-01-22 09:29:28 +10:00
David Reid 8f494c411c Fix a bug where thread handles are not being freed. 2021-01-22 07:25:49 +10:00
David Reid 1b185878a1 Update the resource_manager_advanced example. 2021-01-22 07:19:01 +10:00
David Reid 81a3b5d01f Update c89atomic. 2021-01-20 19:44:02 +10:00
David Reid a389b65a75 Fix some bugs with notifications. 2021-01-20 19:43:18 +10:00
David Reid 776d7ddd91 Fix compilation errors with the C++ build. 2021-01-19 19:22:52 +10:00
David Reid d8c2135e0b Update to latest version of c89atomic. 2021-01-19 19:22:30 +10:00
David Reid ef9099a6f2 Bug fix an update documentation. 2021-01-18 21:42:56 +10:00
David Reid 53512c39b7 Version 0.10.31 2021-01-17 21:40:01 +10:00