Commit Graph

3778 Commits

Author SHA1 Message Date
David Reid c3b0a7fbbc Fix a bug in ma_decoder_read_pcm_frames().
This will abort reading early if the underlying data source returns an
error.
2025-02-23 14:14:23 +10:00
David Reid e4363a90be Fix a channel mapping bug.
Thanks to the Clang static analyzer for this one!
2025-02-23 14:03:34 +10:00
David Reid 6453c9ff22 AAudio: Remove some duplicate code. 2025-02-23 13:46:19 +10:00
David Reid 8c52072f43 Remove const qualifiers from decoding backend vtable arrays. 2025-02-23 12:54:19 +10:00
David Reid b6184fa2a0 Fix some Wnewline-eof warnings. 2025-02-23 12:11:29 +10:00
David Reid 166fd6dfc7 Silence some static analysis warnings. 2025-02-23 12:03:22 +10:00
David Reid 54373128ee Fix a subtle undefined behaviour error. 2025-02-23 11:49:31 +10:00
David Reid c74c90f686 Minor comment changes. 2025-02-23 11:35:26 +10:00
David Reid 01302b9715 Fix a parameter order error.
This did not affect functionality at all because the implementation of
the relevant function is just a simple bitwise OR.
2025-02-23 09:34:48 +10:00
David Reid b5f1ff125e Update documentation for ma_context_get_devices(). 2025-02-23 09:31:52 +10:00
znakeeye 7a1135d448 Goto label placed outside braces for C compliance. 2025-02-23 09:25:16 +10:00
znakeeye 9f9fc2333e Improved synchronization for AAudio rerouting. This should fix the crash observed in ma_device_init__aaudio (when re-routing). 2025-02-23 09:25:16 +10:00
David Reid a497466f75 Add basic testing app for Android.
This is only very basic right now. Will be expanded on later.
2025-02-22 18:54:45 +10:00
David Reid 37b95f0f42 Remove unnecessary example.
The delay node is demonstrated in the engine_effects example.
2025-02-22 14:36:46 +10:00
David Reid 9f10bc7540 Improvements to the build system for extra nodes.
With this change, nodes in the extras folder can now be compiled as a
conventional library.
2025-02-22 14:25:45 +10:00
David Reid 1fbad32949 Stop using MINIAUDIO_IMPLEMENTATION in examples. 2025-02-22 13:09:11 +10:00
David Reid e1f5ed4f79 Rename some more test source files. 2025-02-22 13:00:06 +10:00
David Reid ed5cda309c Simplify the conversion test. 2025-02-22 12:50:00 +10:00
David Reid 3435aafb34 Use a simplified naming scheme for tests. 2025-02-22 12:29:56 +10:00
David Reid 3fd7c9f199 Fix a bug when no data callback is specified in the device config.
Public issue https://github.com/mackron/miniaudio/issues/893
2025-02-22 10:14:04 +10:00
David Reid deafb7e96f Add debugging sandbox for the purpose of debugging miniaudio. 2025-02-22 09:44:03 +10:00
David Reid 2e054f8011 Update gitignore. 2025-02-22 09:42:39 +10:00
David Reid c13504629e Minor update to custom_backend example. 2025-02-22 09:35:16 +10:00
David Reid f9caab2fd5 Update readme.
The user can just look at the CMakeLists.txt file instead of having the
readme duplicate information.
2025-02-21 20:13:51 +10:00
David Reid 57fbc6dd36 WASAPI: Uninitialize a mutex in device uninitialization. 2025-02-21 10:30:22 +10:00
David Reid ee3e532a54 Update fs. 2025-02-21 10:25:02 +10:00
David Reid 178797502e Remove an unnecessary cast. 2025-02-21 08:48:05 +10:00
David Reid 0576191d7d Fix a compilation error with the last commit. 2025-02-21 08:26:52 +10:00
David Reid 6bc3fec34e Try fixing a const-correctness error. 2025-02-21 07:39:16 +10:00
David Reid 2542be5db8 Merge remote-tracking branch 'origin/dev' into dev 2025-02-20 17:46:38 +10:00
David Reid 67d1aca341 iOS: Try fixing an initialization error with capture devices.
Public issue https://github.com/mackron/miniaudio/issues/868
2025-02-20 17:43:40 +10:00
David Reid 5975db4c76 Update fs. 2025-02-20 12:10:26 +10:00
David Reid 08d6d1fac0 Fix a pedantic warning with Clang. 2025-02-20 12:04:16 +10:00
David Reid 4d971fe480 Update CMake script to detect Apple Clang. 2025-02-20 12:03:47 +10:00
David Reid 575790bb29 Update GitHub templates. 2025-02-19 18:43:15 +10:00
David Reid e49ce7df95 Update readme. 2025-02-19 18:43:00 +10:00
David Reid d672b9610f Add a couple of Vorbis and Opus files for testing. 2025-02-19 18:10:47 +10:00
David Reid 3889066fac Update CMake build script.
These changes make it easier to integrate vorbisfile and opusfile from
source.
2025-02-19 18:09:00 +10:00
David Reid ff66923b9a Fix a compilation warning. 2025-02-19 18:05:53 +10:00
David Reid e3151f2df1 Silence an unreachable code warning with MSVC. 2025-02-19 12:32:12 +10:00
David Reid abb81fe95c Fix a warning in miniaudio_libvorbis. 2025-02-19 12:31:48 +10:00
David Reid 8ad250ccf6 Updates to custom decoders. 2025-02-19 12:02:37 +10:00
David Reid b40803cf97 Update fs. 2025-02-19 12:01:22 +10:00
David Reid 466a1354ce Experiment with a fix for older versions of Clang. 2025-02-19 10:30:09 +10:00
David Reid e08c1303ef Fix a bug with the deviceio test. 2025-02-19 09:43:51 +10:00
David Reid 698a4319f0 Update fs. 2025-02-19 09:43:19 +10:00
David Reid eee86a0ae1 Fix the C++ build for some examples. 2025-02-19 08:28:01 +10:00
David Reid d3a4b9cf20 Minor changes to CMakeLists. 2025-02-19 08:23:11 +10:00
David Reid 48ac10d1e1 Fix a C++ compilation error. 2025-02-18 18:41:10 +10:00
Edoardo Lolletti 4b4349af52 Fix miniaudio_libvorbis.h compilation as c++ 2025-02-18 18:39:26 +10:00