Commit Graph

1755 Commits

Author SHA1 Message Date
David Reid 6ecb728326 Core Audio: Fix a bug when using multiple contexts. 2020-10-11 10:56:53 +10:00
David Reid 0ae8adc1c0 Core Audio: Remove logic that forces the device's original sample rate. 2020-10-11 10:27:09 +10:00
David Reid 5a20743a03 Core Audio: Fix a compilation warning. 2020-10-11 10:08:03 +10:00
David Reid ea82457317 Update revision history. 2020-10-08 18:56:54 +10:00
Will Wong 78dab3643c Fix loopback typo 2020-10-08 13:20:12 +09:00
David Reid 634cdb028f Version 0.10.20 2020-10-06 17:43:19 +10:00
David Reid d20c3bf5a9 Fix the UWP build.
Public issue https://github.com/mackron/miniaudio/issues/199
2020-10-05 07:55:20 +10:00
David Reid 4b32673701 Update documentation to use more professional language. 2020-09-30 20:10:26 +10:00
David Reid 5b82783d19 Version 0.10.19 2020-09-22 21:43:03 +10:00
David Reid 35beabb8d7 Fix a bug in ma_decoder_seek_to_pcm_frames().
This bug is that the function is never returning MA_SUCCESS even when
successful.
2020-09-21 18:01:46 +10:00
David Reid 7a72cc3f84 WASAPI: Return an error when the native format is not supported. 2020-09-20 13:26:35 +10:00
David Reid c50d5435e1 Store the sample rate in the ma_lpf and ma_hpf structures. 2020-09-12 12:56:41 +10:00
David Reid 4203697b38 Version 0.10.18 2020-08-30 11:58:18 +10:00
David Reid ecc0cb3418 Update links to point to the new repository location. 2020-08-30 11:56:37 +10:00
David Reid 6562e6a0c8 Update FLAC decoder. 2020-08-30 11:41:37 +10:00
David Reid ecb139a791 Update revision history. 2020-08-29 16:50:58 +10:00
David Reid dde178a0ea Add a comment about a VC6 limitation. 2020-08-29 15:09:39 +10:00
David Reid 578db3c8e1 Remove an unnecessary function declaration. 2020-08-29 15:00:27 +10:00
David Reid 7adf2f3bbc Merge pull request #192 from Clownacy/dev
Fix some VC6/2003 errors
2020-08-29 14:50:17 +10:00
David Reid f0a4b4533d Use a more appropriate default format for FLAC decoders. 2020-08-29 09:31:43 +10:00
David Reid f156baafca Use a default instead of blank channel map by default.
This commit fixes an issue where the optimized mono expansion path is
never hit.
2020-08-29 09:18:50 +10:00
David Reid f6fcbc7133 Fix an overflow bug in channel conversion. 2020-08-29 09:03:39 +10:00
David Reid a8557e82da Version 0.10.17 2020-08-28 20:36:58 +10:00
David Reid 18fd90c74f Fix a bug in ma_audio_buffer_read_pcm_frames().
This was always returning the input frame count rather than the number
of frames processed.
2020-08-28 20:25:54 +10:00
David Reid 479e239e6d Core Audio: Fix a bug with full-duplex mode.
Public issue https://github.com/dr-soft/miniaudio/issues/191
2020-08-27 17:50:08 +10:00
Clownacy 145520fabc Use fallback when SetFilePointerEX unavailable
VC6 doesn't appear to have SetFilePointerEX, so fallback on
SetFilePointer instead. This matches-up with VC6 not supporting
64-bit fseek.

Visual Studio .NET 2003 supports it, however.
2020-08-26 00:27:28 +01:00
Clownacy 9f4efc258c Fix some VC6/2003 errors
For whatever reason, neither compiler likes implicit casts between
`volatile unsigned int*` and `int*`.
2020-08-26 00:16:56 +01:00
David Reid d83b3886a1 Update WAV codec. 2020-08-24 21:11:18 +10:00
David Reid 1ea2ee3caf Update documentation. 2020-08-22 17:49:46 +10:00
David Reid e34171fa31 Fix compilation error on Android. 2020-08-19 19:55:42 +10:00
David Reid 5310bdb0f4 Update revision history. 2020-08-17 17:46:23 +10:00
Pedro K Custodio ac62b0a030 Include dr_wav if only one of MA_NO_DECODING or MA_NO_ENCODING is defined. 2020-08-16 13:50:47 +01:00
David Reid fe85a13214 Add ma_decoder_get_cursor_in_pcm_frames(). 2020-08-15 10:09:19 +10:00
David Reid eea8ea9e2d Version 0.10.16 2020-08-14 18:56:49 +10:00
David Reid 1f97a8138b Update dr_flac. 2020-08-14 18:50:22 +10:00
David Reid b61fc570a2 Fix a bug in ma_data_source_get_cursor/length_in_pcm_frames(). 2020-08-14 10:57:53 +10:00
David Reid 775c624e66 Add some APIs to data sources:
* ma_data_source_get_cursor_in_pcm_frames()
  * ma_data_source_get_length_in_pcm_frames()

When the data source has no notion of a cursor or length, these return
MA_NOT_IMPLEMENTED to let the caller know about it. This is returned
when a custom data source leaves these functions unimplemented.

ma_decoder, ma_audio_buffer, ma_waveform and ma_noise have all been
updated to support these new functions.
2020-08-09 22:29:11 +10:00
David Reid 76a43426de Add sample rate to ma_data_source_get_data_format(). 2020-08-09 07:27:41 +10:00
David Reid 764ebc5e1b Change volume APIs to take 64-bit frame counts. 2020-08-08 19:29:10 +10:00
David Reid 6e017f7fe7 Add some APIs for ma_audio_buffer and ma_decoder.
* ma_audio_buffer_get_available_frames()
  * ma_decoder_get_available_frames()
2020-08-08 12:14:18 +10:00
David Reid 6425fc643a Update dr_wav, dr_flac and dr_mp3. 2020-08-02 11:53:41 +10:00
David Reid 4830c9f5b5 Update c89atomic. 2020-08-02 11:53:00 +10:00
David Reid d0149a0374 Simplify sized types. 2020-08-02 09:15:40 +10:00
David Reid b48d0dfbdd WASAPI: A few tweaks for handling device changes. 2020-08-02 08:41:19 +10:00
David Reid f947a75dbe Silence a warning on VC6. 2020-08-01 12:03:02 +10:00
David Reid 5b50d07fe8 Update c89atomic. 2020-08-01 11:59:02 +10:00
David Reid f6a4e33946 Clean up some code from an earlier commit. 2020-08-01 11:43:35 +10:00
David Reid 54fe965bc0 Fix some bugs in ma_data_source_read_pcm_frames()
* A crash when the pFramesRead parameter is null
  * Looping not working due to MA_AT_END now being returned.

Public issue https://github.com/dr-soft/miniaudio/issues/185
2020-08-01 11:39:58 +10:00
David Reid 0a9f0c625c WASAPI: Try fixing a deadlock when disabling a device.
Public issue https://github.com/dr-soft/miniaudio/issues/184
2020-08-01 10:51:03 +10:00
David Reid 11e488e1cc Win32: Use better error detection for WaitForSingleObject(). 2020-08-01 08:21:05 +10:00