Commit Graph

3139 Commits

Author SHA1 Message Date
David Reid 073b7bbbba Version 0.11.7 2022-02-06 10:20:23 +10:00
David Reid 353eaba3c0 Update revision history. 2022-02-06 10:19:13 +10:00
David Reid 29aabca4ae Update dr_flac. 2022-02-06 10:05:26 +10:00
David Reid d5be37050e Fix a possible Wundef warning. 2022-02-05 09:02:32 +10:00
David Reid 10783dd8eb Update revision history. 2022-01-28 18:28:51 +10:00
David Reid 7627ada281 Fix a memory leak with LPF/HPF/BPF.
Public issue https://github.com/mackron/miniaudio/issues/421
2022-01-28 18:12:52 +10:00
David Reid 0f461e564d Update version number and revision history. 2022-01-26 15:23:23 +10:00
David Reid 8f4a15c1ef Update dr_wav.
Public issue https://github.com/mackron/miniaudio/issues/420
2022-01-26 15:21:56 +10:00
David Reid c3a9ab9b90 Version 0.11.6 2022-01-22 12:12:24 +10:00
David Reid 13f1d31a85 Update CHANGES. 2022-01-22 12:09:56 +10:00
David Reid 6639243532 Use CreateEventW() instead of CreateEvent(). 2022-01-22 11:48:50 +10:00
David Reid 1d2a500e7a PulseAudio: Try fixing an error when initializing a device.
Public issue https://github.com/mackron/miniaudio/issues/412
2022-01-21 17:55:01 +10:00
David Reid 0072eb8baf Merge pull request #416 from Sahnvour/fix_posix_wait
fix undefined behavior in ma_thread_wait__posix
2022-01-21 17:23:05 +10:00
Sahnvour e85d07d050 fix undefined behavior in ma_thread_wait__posix
Quoting man for pthread_detach:
> The behavior is undefined if the value specified by the thread argument
> to pthread_detach() does not refer to a joinable thread.

Since the thread was joined right before, pthread_detach should not be called.
2022-01-21 01:15:36 +01:00
David Reid 4f43538cd6 PulseAudio: Try fixing a division by zero error.
Public issue https://github.com/mackron/miniaudio/issues/412
2022-01-20 17:56:24 +10:00
David Reid b89603dc4d Merge branch 'dev' of https://github.com/mackron/miniaudio into dev 2022-01-20 17:21:00 +10:00
David Reid 9589a62f0c Fix example. 2022-01-20 17:20:26 +10:00
David Reid ba2f46b6f1 Merge pull request #413 from Clownacy/dev
Update some outdated parts of the documentation
2022-01-20 17:18:07 +10:00
Clownacy 56e41a0fde Update example 'ma_data_converter_uninit' call 2022-01-19 19:10:45 +00:00
Clownacy 38c814f52a Update some more documentation
This time for example code showing 'ma_channel_converter_init' and
'ma_data_converter_init'.
2022-01-19 19:07:40 +00:00
Clownacy d51b056c51 Correct outdated variable name in documentation
'noPreZeroedOutputBuffer' was renamed to 'noPreSilencedOutputBuffer'
in v0.11.0.
2022-01-19 18:38:27 +00:00
David Reid 252de0f0ad Add support for retrieving the cursor and length in seconds.
This has been added for `ma_data_source` and `ma_sound`.

Public issue https://github.com/mackron/miniaudio/issues/411
2022-01-19 19:41:53 +10:00
David Reid f769b18157 WASAPI: Fix an error where a buffer can possible be unreleased. 2022-01-19 17:50:34 +10:00
David Reid 11e2e59324 WASAPI: Fix an error where the device is not stopped when read fails.
Public issue https://github.com/mackron/miniaudio/issues/410
2022-01-19 17:28:41 +10:00
David Reid 8c2d95263c Update changes. 2022-01-18 18:52:21 +10:00
David Reid 15b4dbff01 Minor fixes to the node graph node. 2022-01-18 18:50:44 +10:00
David Reid 3947725f04 Add support for using ma_node_graph as a node.
This allows the node graph to be connected to another node graph.
2022-01-18 18:31:18 +10:00
David Reid c25fe30aa6 WASAPI: Handle AUDCLNT_E_BUFFER_ERROR when processing audio data.
Public issue https://github.com/mackron/miniaudio/issues/410
2022-01-18 17:36:26 +10:00
David Reid cb2e3a7c51 Update log message to show error code.
Public issue https://github.com/mackron/miniaudio/issues/410
2022-01-18 17:31:07 +10:00
David Reid f0e1b78b6e Update CHANGES. 2022-01-17 19:46:03 +10:00
David Reid b2eccfa6d4 Fix a bug with engine nodes.
This bug results in an audio glitch when mixing nodes in the node
graph. It specifically happens when resampling is not being performed,
in which case it was specifying an output frame count greater than the
number of frames that are actually being output.

Public issue https://github.com/mackron/miniaudio/issues/408
2022-01-17 19:31:29 +10:00
David Reid f2d4fc426d Fix a crash with high-pass and band-pass filters.
Public issue https://github.com/mackron/miniaudio/issues/409
2022-01-17 18:58:31 +10:00
David Reid 91ef8e19ab Fix a copy paste error. 2022-01-17 18:34:00 +10:00
David Reid 92d39a73fa Version 0.11.5 2022-01-16 19:35:45 +10:00
David Reid 592d3d61b5 Minor change for improved syntax highlighting for the implementation. 2022-01-16 18:00:14 +10:00
David Reid e3f3754e4e Fix a compilation error when MA_NO_DEVICE_IO is enabled. 2022-01-16 17:41:42 +10:00
David Reid 5138fd992c Update changes. 2022-01-16 11:59:51 +10:00
David Reid 0ca929a658 WASAPI: Refactoring to simplify data reading and writing.
This commit removes the custom data loop and instead implements the
onDeviceRead and onDeviceWrite backend callbacks. This simplifies the
implementation and fixes a bug with duplex mode where the capture and
playback devices have different native sample rates.

This commit also fixes a bug with fixed sized callbacks with duplex
mode.

Public issue https://github.com/mackron/miniaudio/issues/397
2022-01-16 11:52:26 +10:00
David Reid 1d8f687b2e Make ma_engine_play_sound_ex() publicly visible. 2022-01-15 06:49:53 +10:00
David Reid dd2441a407 Add validation for the pitch in ma_sound_set_pitch(). 2022-01-14 21:21:29 +10:00
David Reid 28ba62cb9d Add some validation to the resampler. 2022-01-14 21:13:13 +10:00
David Reid aa983db038 Core Audio: Stop the device when interruption_began is posted.
Public issue https://github.com/mackron/miniaudio/issues/400
2022-01-14 19:03:52 +10:00
David Reid 99d3718440 Core Audio: Fix a deadlock when stopping a device from an interruption.
Public issue https://github.com/mackron/miniaudio/issues/400
2022-01-14 19:00:44 +10:00
David Reid 981d05ae8d Fix a deadlock when starting a device fails.
Public issue https://github.com/mackron/miniaudio/issues/399
2022-01-13 18:28:40 +10:00
David Reid 26e2a59ffb Update changes. 2022-01-11 19:30:42 +10:00
David Reid 7796b4a0d9 Add documentation for the aaudio.noAutoStartAfterReroute config. 2022-01-11 19:30:32 +10:00
David Reid cc274c67d5 Move revision history out of miniaudio.h and into CHANGES.md 2022-01-11 19:09:25 +10:00
David Reid a548ffba5d Update version number. 2022-01-11 18:59:21 +10:00
David Reid ee75e79975 AAudio: Don't try stopping the stream if it's disconnected.
Public issue https://github.com/mackron/miniaudio/issues/318
2022-01-11 18:58:49 +10:00
David Reid af1928c3f0 AAudio: Try fixing an issue with automatic stream rerouting.
Public issue https://github.com/mackron/miniaudio/issues/318
2022-01-11 18:53:14 +10:00