Commit Graph

221 Commits

Author SHA1 Message Date
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
David Reid 163286be2c Add support for configuring the Q parameter of biquad based filters.
This is in preparation for improving ma_lpf, ma_hpf and ma_bpf to make
them proper Butterworth filters.
2020-02-28 20:48:50 +10:00
David Reid 5fdb319014 Fix bug in test code. 2020-02-27 20:55:37 +10:00
David Reid 479d36c2a1 Add support for Brownian noise. 2020-02-25 19:07:50 +10:00
David Reid 8c96ca4c55 Update documentation. 2020-02-25 17:29:59 +10:00
David Reid cf3fd4876f Add support for pink noise. 2020-02-24 20:22:14 +10:00
David Reid 8d4e0bc84e Fix memory leaks in tests. 2020-02-23 21:21:11 +10:00
David Reid f305dc9890 Add second order high shelf filter. 2020-02-23 21:21:02 +10:00
David Reid 5b385670f3 Add second order low shelf filter. 2020-02-23 21:03:22 +10:00
David Reid f1abfccb52 Add second order notching filter. 2020-02-23 20:08:44 +10:00
David Reid a5d4109a6a Add testing code for peaking filter. 2020-02-23 20:01:02 +10:00
David Reid 825cd23ae8 Add second order peaking EQ filter.
This API is called ma_peak.
2020-02-23 19:52:01 +10:00
David Reid 2fd71d3a7a Add an encoding API.
This API is called ma_encoder. Currently it only supports encoding to
WAV files, which is done via dr_wav.
2020-02-23 17:04:46 +10:00
David Reid 3edc03f931 Add ma_bpf with support for configuring the number of poles. 2020-02-23 14:46:32 +10:00
David Reid cda27514f0 Add ma_hpf with support for configuring the number of poles. 2020-02-23 14:07:48 +10:00
David Reid 2e1869ab1b Add 1-pole high pass filter. 2020-02-23 13:55:46 +10:00
David Reid a263cd9730 Add ma_lpf with support for configuring the number of poles. 2020-02-23 12:04:43 +10:00
David Reid e9234f8894 Rename ma_bpf to ma_bpf2. 2020-02-23 10:54:27 +10:00
David Reid 846b27908d Rename ma_hpf to ma_hpf2. 2020-02-23 10:50:34 +10:00
David Reid 22b958b471 Rename ma_lpf to ma_lpf2. 2020-02-23 10:48:15 +10:00
David Reid f028e65e38 Update filtering tests. 2020-02-23 10:36:28 +10:00
David Reid 10f0aebed3 Add 1-pole low-pass filter. 2020-02-23 10:12:29 +10:00
David Reid 4e91c63874 Delete old tests. 2020-02-22 18:02:43 +10:00
David Reid 673dce1978 Add filtering tests. 2020-02-22 16:47:42 +10:00
David Reid e5aaffc299 Minor restructuring to tests. 2020-02-22 15:13:28 +10:00
David Reid e04da50915 Add generation tests. 2020-02-22 14:33:53 +10:00
David Reid 7d21d3e7e1 Stop version controlling test build scripts. 2020-02-10 19:47:05 +10:00
David Reid 1246c4a834 Stop version controlling Visual Studio projects. 2020-02-10 19:45:43 +10:00
David Reid 86a0e65d02 Update examples. 2020-02-09 14:54:58 +10:00
David Reid 71fe5ec59c Set up some infrastructure for SIMD optimized format conversion. 2020-02-02 16:58:24 +10:00
David Reid 862f66c1fb Update duplex test. 2020-02-02 14:13:42 +10:00