Commit Graph

2598 Commits

Author SHA1 Message Date
David Reid 595ba3f729 Update wording in example. 2021-06-24 18:52:33 +10:00
David Reid 45d07688e5 Add ma_fence object in preparation for changes to async notifications. 2021-06-24 17:51:15 +10:00
David Reid cf2c9f2533 PulseAudio: Attempt to fix a division by zero error.
Public issue https://github.com/mackron/miniaudio/issues/323
2021-06-22 17:41:41 +10:00
David Reid cb9cbeba04 Fix a copy/paste error. 2021-06-20 20:33:23 +10:00
David Reid ef0abd01b7 Add delay effect.
This can be used for echo as well as a simple delay.
2021-06-20 20:15:57 +10:00
David Reid af72639d43 Fix a copy/paste error. 2021-06-20 20:13:49 +10:00
David Reid ac0afa061f Add example for the vocoder node. 2021-06-20 16:32:46 +10:00
David Reid a62def6d53 Add reverb node to examples.
This uses https://github.com/blastbay/verblib to achieve the effect.
2021-06-20 14:41:30 +10:00
David Reid f62e0d3b68 Rearrange some code for consistency with other code. 2021-06-20 14:36:07 +10:00
David Reid 4442f926c9 Fix compilation errors. 2021-06-20 14:35:42 +10:00
David Reid f96071f12d Add some filter nodes.
* Biquad
  * LPF
  * HPF
  * BPF
  * Notch
  * Peak
  * Low / High Shelf
2021-06-20 10:29:19 +10:00
David Reid a95c066218 Add alternate names for some structs.
This is in preparation for some work in the high level API.
2021-06-20 10:20:12 +10:00
David Reid 651520216d Fix a compilation warning on 32-bit. 2021-06-19 16:36:30 +10:00
David Reid 4257e070be Add ma_engine_set_time(). 2021-06-19 16:21:43 +10:00
David Reid 4be6201142 Merge branch 'dev' of https://github.com/mackron/miniaudio into dev 2021-06-19 15:13:59 +10:00
David Reid efc2fdcba3 Fix a seeking bug for sounds. 2021-06-19 15:13:47 +10:00
David Reid f24967f952 Comment out some code to try and fix an error on iOS.
Public issue https://github.com/mackron/miniaudio/issues/101
2021-06-17 18:05:06 +10:00
David Reid 2d43f4d01c Add support for data sources without support for seeking. 2021-06-13 18:05:20 +10:00
David Reid 9be681b848 Return MA_AT_END from ma_(pcm_)rb_commit_read/write(). 2021-06-13 18:04:57 +10:00
David Reid b48cb209e6 Fix an infinite loop when reading 0 frames from a data data buffer. 2021-06-13 14:50:27 +10:00
David Reid a26d41ed11 Fix a bug relating to the handling of looping sounds. 2021-06-13 12:50:27 +10:00
David Reid 7858e098f5 Add some helper functions to ma_audio_buffer/_ref. 2021-06-13 12:42:06 +10:00
David Reid b3d0858edf Fix a bug where data buffers never return MA_AT_END. 2021-06-13 07:24:40 +10:00
David Reid 7a9ce3d0d3 Fix a bug where MA_AT_END is not getting returned by audio buffers. 2021-06-13 07:17:26 +10:00
David Reid 73e1589afa Update dr_wav.
Public issue https://github.com/mackron/miniaudio/issues/320
2021-06-11 19:50:42 +10:00
David Reid 8234df87c9 Fix a possible double file close when decoder initialization fails.
Public issue https://github.com/mackron/miniaudio/issues/319
2021-06-11 19:03:01 +10:00
David Reid a10e763681 Fix a subtle multi-threading bug. 2021-06-09 20:56:37 +10:00
David Reid 96bcc0075a Refactor for data registration in the resource manager. 2021-06-09 19:52:20 +10:00
David Reid 0bc91256d6 Remove redundant check. 2021-06-09 17:26:08 +10:00
David Reid cde21de5c5 Fix a bug introduced in an earlier commit. 2021-06-09 17:18:02 +10:00
David Reid 59565c03ad Fix a subtle memory leak. 2021-06-08 21:21:20 +10:00
David Reid 1bb4bc690e Remove some old code. 2021-06-08 21:14:30 +10:00
David Reid 70d74c9d61 Fix a bug where sometimes a notification never gets signalled. 2021-06-08 21:05:21 +10:00
David Reid 5c26709fa7 Fix some subtle memory leaks with async decoding.
This was happening specifically when uninitializing a data buffer while
it's still loading asynchronously.
2021-06-08 20:14:18 +10:00
David Reid f0864a1c93 Fix an incorrect assert. 2021-06-07 19:39:11 +10:00
David Reid 70add6c146 Fix an infinite loop when decoding via the resource manager. 2021-06-07 18:45:52 +10:00
David Reid 24495afeaa Enable experimental features on the engine test. 2021-06-06 07:50:02 +10:00
David Reid b2cabfbe8d Properly respect the WAIT_INIT flag. 2021-06-06 07:16:09 +10:00
David Reid 7d00be85d7 Finish refactoring work for resource managed data buffers.
This properly decouples data buffer nodes from data buffers and should
address some subtle bugs, especially with uninitializing data buffers
while they're still loading.

This also cleans up the decoding code, in particular by avoiding some
duplicate code between the synchronous and asynchronous decoding paths.
2021-06-05 18:47:35 +10:00
David Reid c1021acd83 Fix compilation error. 2021-06-02 18:20:31 +10:00
David Reid f0a8ea3a76 Merge branch 'gh-301' into dev 2021-06-02 17:28:13 +10:00
David Reid 3c4b0d2e71 Code cleanup in preparation for some refactoring. 2021-05-30 12:39:59 +10:00
David Reid d5c27dde7a Fix a bug due to a bad use of an atomic. 2021-05-30 08:21:52 +10:00
David Reid 328f84c267 Fix some comments. 2021-05-29 20:10:04 +10:00
David Reid 2257ce7b56 Standardize and simplify some APIs. 2021-05-29 18:16:34 +10:00
David Reid 7d0106346b Fix a subtle atomicity bug in the engine. 2021-05-29 15:27:30 +10:00
David Reid 57a107db20 Add support for loop points to ma_data_source.
The loop points are specified relative to the range, and will be
clamped as such.
2021-05-29 15:27:06 +10:00
David Reid c47fcebc85 Fix an infinite loop in the resource manager. 2021-05-29 08:38:01 +10:00
David Reid 8f40d5cd87 Fix an atomicity bug. 2021-05-28 18:06:53 +10:00
David Reid 3542cd26e9 Update c89atomic. 2021-05-27 19:39:46 +10:00