Commit Graph

3059 Commits

Author SHA1 Message Date
David Reid 68f9484689 Try fixing a few issues with the lock-free job queue. 2021-08-14 14:25:08 +10:00
David Reid 6972cb5388 Mark some variables as atomic. 2021-08-14 13:54:10 +10:00
David Reid 47381c66de Remove dr_* libraries from the extras folder.
These are amalgamated into miniaudio.h now and are no longer required
in the extras folder.
2021-08-14 10:33:54 +10:00
David Reid 9964922b63 Fix some alignment errors with preallocation. 2021-08-14 10:30:09 +10:00
David Reid 2e9b6422b8 Use preallocation for the engine node resampler. 2021-08-14 10:23:53 +10:00
David Reid 8576fa62ce Fix a bug when retrieving the channel map of a data converter. 2021-08-10 17:21:51 +10:00
David Reid 677a7132af Relax MA_MAX_CHANNELS. 2021-08-08 14:39:49 +10:00
David Reid 30c41c76ee Rename ma_get_standard_channel_map() to ma_channel_map_init_standard(). 2021-08-08 13:09:06 +10:00
David Reid 405fc1ab70 API CHANGE: Rename ma_channel_map_valid() to ma_channel_map_is_valid().
This also changes the order of parameters to be consistent with the new
standard for channel maps.
2021-08-08 12:06:31 +10:00
David Reid e2a61365f2 Fix some signed/unsigned warnings and update dr_mp3. 2021-08-08 10:20:39 +10:00
David Reid fda588d96b Fix compilation errors with OpenWatcom. 2021-08-08 10:04:58 +10:00
David Reid cec955edf4 Whitespace. 2021-08-08 10:01:23 +10:00
David Reid c77e88dfd7 Fix some warnings with OpenWatcom. 2021-08-08 10:00:23 +10:00
David Reid eb1f667fe0 Fix compilation errors relating to denormals.
* Fix an error when _MM_DENORMALS_ZERO_MASK or _MM_FLUSH_ZERO_MASK is
    not supported.

  * Fix compilation errors with TCC.
2021-08-08 09:50:37 +10:00
David Reid d357e8a1f6 Fix compilation errors with VC6. 2021-08-08 09:38:05 +10:00
David Reid 7b46166431 Fix compilation on older versions of Visual Studio. 2021-08-08 09:06:28 +10:00
David Reid e04db53ef5 Fix a strict C89 error. 2021-08-08 08:38:03 +10:00
David Reid 510519fe1d Fix denormal control with VC6. 2021-08-08 08:36:45 +10:00
David Reid d0285d6b51 Add support for preallocation to ma_bpf. 2021-08-07 19:13:22 +10:00
David Reid 573f921d09 Remove dependency on MA_MAX_CHANNELS from the JACK backend. 2021-08-07 17:55:22 +10:00
David Reid caa3d7a55c Silence some warnings. 2021-08-07 17:18:36 +10:00
David Reid 81bc7a9023 Fix a memory leak with devices. 2021-08-05 22:18:01 +10:00
David Reid 61b95779c2 Fix line spacing in test. 2021-08-05 20:47:50 +10:00
David Reid 4bcf1931e5 Remove dependency on MA_MAX_CHANNELS from ma_noise. 2021-08-05 20:12:13 +10:00
David Reid 5059eb522f Remove dependency on MA_MAX_CHANNELS from ma_decoder. 2021-08-05 19:18:26 +10:00
David Reid 33dab4e475 Typo. 2021-08-05 18:43:37 +10:00
David Reid ca68c2b8f3 Remove dependency on MA_MAX_CHANNELS from ma_device_config. 2021-08-05 18:25:36 +10:00
David Reid 018c1713d2 Merge branch 'dev' into dev-0.11 2021-08-04 22:22:32 +10:00
David Reid 9d9395d78f Fix some warnings with ma_libopus and ma_libvorbis. 2021-08-04 22:22:19 +10:00
David Reid b45a978d4d Remove dependency on MA_MAX_CHANNELS from data conversion. 2021-08-04 21:27:01 +10:00
David Reid ecfac57bed Minor changes to data converter in preparation for future work. 2021-08-04 20:42:23 +10:00
David Reid 961223b50c Add support for preallocation to ma_data_converter. 2021-08-04 20:24:06 +10:00
David Reid 59b6bcdfec Fix a formatting error with logging. 2021-08-04 17:30:44 +10:00
David Reid c0a9d3e9d3 Refactoring to channel converter.
With this change, support for preallocation has been added and the
dependency on MA_MAX_CHANNELS has been removed.
2021-08-04 17:29:19 +10:00
David Reid 8036bcb64d Fix a memory leak. 2021-07-31 13:06:01 +10:00
David Reid b9f5290889 Add support for presallocation to ma_resampler.
This commit makes preallocation mandatory for custom resamplers.
2021-07-31 12:54:01 +10:00
David Reid 947bccee18 Update c89atomic. 2021-07-31 10:31:34 +10:00
David Reid 369d3b8df7 Fix compilation errors with examples. 2021-07-31 10:22:20 +10:00
David Reid d371f3553a Fix compilation errors with MA_NO_RESOURCE_MANAGER and MA_NO_DECODING. 2021-07-31 10:15:16 +10:00
David Reid 93fe77a0d5 Merge branch 'dev' into dev-0.11 2021-07-31 10:07:23 +10:00
David Reid e40373a083 Update dr_libs and fix platform detection for ARM64. 2021-07-31 10:06:44 +10:00
David Reid 4e2e371b26 Fix a merge error. 2021-07-31 09:25:02 +10:00
David Reid 50bba9fa36 Merge branch 'dev' into dev-0.11 2021-07-31 09:20:09 +10:00
David Reid cb56bb6c64 Update revision history. 2021-07-31 09:20:00 +10:00
David Reid a369f2a604 Merge branch 'dev' into dev-0.11 2021-07-31 09:17:43 +10:00
David Reid e358e72f67 Core Audio: Fix a possible deadlock when uninitializing a device. 2021-07-31 09:16:52 +10:00
Steven Noonan 43f2e28c20 coreaudio: don't allow g_DeviceTrackingInitCounter_CoreAudio to go negative
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
2021-07-31 09:08:02 +10:00
Steven Noonan 4be3cc597a coreaudio: ensure we increment the tracking counter properly
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
2021-07-31 09:03:48 +10:00
David Reid 68543c8d2e More atomic experiments. 2021-07-29 17:59:29 +10:00
David Reid a528d25803 Experiment with some atomic loads. 2021-07-28 21:25:24 +10:00