Commit Graph

301 Commits

Author SHA1 Message Date
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 deafb7e96f Add debugging sandbox for the purpose of debugging miniaudio. 2025-02-22 09:44:03 +10:00
David Reid e08c1303ef Fix a bug with the deviceio test. 2025-02-19 09:43:51 +10:00
David Reid 22a5c65c94 Update tests. 2025-02-18 17:46:57 +10:00
David Reid cff683a1b1 Add a non-interactive mode for the deviceio test. 2025-02-18 17:30:59 +10:00
David Reid cf9371748a Fix compilation warnings with some tests. 2025-02-17 18:15:22 +10:00
David Reid 059a25d9c5 Minor update to tests build instructions for Emscripten. 2025-01-04 09:05:39 +10:00
David Reid bdab2fc3e0 Remove an accidental change to the deviceio test. 2024-01-08 12:30:04 +10:00
David Reid eb0ce6f1a5 Fix an error when dynamically linking when forcing the UWP build.
This also fixes a possible crash during initialization due to leaving a
thread running after early termination of the initialization routine.
2023-11-04 08:43:16 +10:00
David Reid bdf9a5554b Update the deviceio test. 2023-09-10 07:26:09 +10:00
David Reid 6e6823d9e4 Update deviceio test. 2023-08-31 18:30:04 +10:00
David Reid d4fd8411c4 Update Emscripten test. 2023-08-06 15:39:54 +10:00
David Reid 810cdc2380 Improvements to Audio Worklets support for Web Audio.
Public issue https://github.com/mackron/miniaudio/issues/597
2023-08-05 17:02:26 +10:00
David Reid 14be2bd394 Fix some long out of date tests. 2023-05-22 18:20:21 +10:00
David Reid a8f3cb857e Fix compilation errors with MA_NO_DEVICE_IO. 2023-05-22 18:09:04 +10:00
David Reid 9bb3467b74 Revert an accidental change. 2023-03-18 09:30:13 +10:00
David Reid 4da843bab6 Remove a dependency on a system header and change alignas to _Alignas. 2023-03-17 15:38:07 +10:00
David Reid 6132b5d4fe Update tests readme regarding the Emscripten build. 2023-03-16 12:29:15 +10:00
David Reid bfd66ab4d2 Add a very simple Emscripten-specific test.
This will be expanded on later to be a lot more complete.
2023-02-28 11:24:58 +10:00
David Reid 922b58463c Introduce a new device notification system.
This replaces the stop callback. The new callback supports different
event types, not all of which are supported on all backends.

This commit also fixes a bug where the stop callback is not fired.

Public issue https://github.com/mackron/miniaudio/issues/351
2021-12-28 19:35:05 +10:00
David Reid 46a062e149 Add ma_device_get_name(). 2021-12-27 09:49:52 +10:00
David Reid 26db06adca Update device IO test. 2021-10-10 20:07:36 +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 d92c2016ad Remove some debugging code that was accidentally committed. 2020-12-26 18:05:08 +10:00
David Reid 929e70a544 Fix some static analaysis warnings. 2020-12-02 17:43:23 +10:00
David Reid 03794d9143 Clean up the deviceio test. 2020-11-08 19:26:04 +10:00
David Reid baf6a222e5 Make the isDefault property of ma_device_info public.
Public issue https://github.com/mackron/miniaudio/issues/126
2020-11-04 21:56:32 +10:00
David Reid f6800b423a Minor change to the deviceio test. 2020-11-01 21:11:23 +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 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 6f748942e6 Update examples and tests. 2020-06-24 19:37:46 +10:00
David Reid d105a37ede Fix a copy and paste error with the generation test. 2020-03-08 12:46:47 +10:00
David Reid a0fd38e020 Add enumeration to device IO test. 2020-03-08 11:15:23 +10:00
David Reid 8ee2abc119 Move tests readme to the build directory. 2020-03-08 09:40:22 +10:00
David Reid 427f1f9930 Don't include pthread.h nor semaphore.h with MA_NO_DEVICE_IO.
Public issue https://github.com/dr-soft/miniaudio/issues/138
2020-03-08 09:15:34 +10:00
David Reid fbdad2d2b8 Fix a warning on some compilers. 2020-03-07 11:07:00 +10:00
David Reid f2dd3159f9 Update build command line examples to be consistent with each other. 2020-03-07 10:20:24 +10:00
David Reid 869a6ec662 Update example build script. 2020-03-07 10:10:45 +10:00
David Reid 8ae440b883 Start work on automated test. 2020-03-04 21:14:51 +10:00
David Reid 2b6564a79b Add C++ test. 2020-03-03 21:03:25 +10:00
David Reid 46c7111ca3 Fix a warnings in tests. 2020-03-03 21:02:39 +10:00
David Reid 79b4d7a4ac Fix tests readme. 2020-03-03 20:49:15 +10:00
David Reid c79eebd050 Rearrange directory structure. 2020-03-03 20:47:24 +10:00
David Reid f61c637475 Remove unnecessary placeholder file. 2020-03-03 20:12:24 +10:00
David Reid 9dab27cdb0 Remove old test code. 2020-03-03 18:05:07 +10:00
David Reid fff4cd56c9 Add simple_duplex example and remove old duplex text.
Duplex can be tested with the deviceio test.
2020-03-01 12:19:44 +10:00
David Reid 348bb43a47 Add device IO test. 2020-03-01 12:03:49 +10:00