David Reid
3889066fac
Update CMake build script.
...
These changes make it easier to integrate vorbisfile and opusfile from
source.
2025-02-19 18:09:00 +10:00
David Reid
ff66923b9a
Fix a compilation warning.
2025-02-19 18:05:53 +10:00
David Reid
e3151f2df1
Silence an unreachable code warning with MSVC.
2025-02-19 12:32:12 +10:00
David Reid
abb81fe95c
Fix a warning in miniaudio_libvorbis.
2025-02-19 12:31:48 +10:00
David Reid
8ad250ccf6
Updates to custom decoders.
2025-02-19 12:02:37 +10:00
David Reid
b40803cf97
Update fs.
2025-02-19 12:01:22 +10:00
David Reid
466a1354ce
Experiment with a fix for older versions of Clang.
2025-02-19 10:30:09 +10:00
David Reid
e08c1303ef
Fix a bug with the deviceio test.
2025-02-19 09:43:51 +10:00
David Reid
698a4319f0
Update fs.
2025-02-19 09:43:19 +10:00
David Reid
eee86a0ae1
Fix the C++ build for some examples.
2025-02-19 08:28:01 +10:00
David Reid
d3a4b9cf20
Minor changes to CMakeLists.
2025-02-19 08:23:11 +10:00
David Reid
48ac10d1e1
Fix a C++ compilation error.
2025-02-18 18:41:10 +10:00
Edoardo Lolletti
4b4349af52
Fix miniaudio_libvorbis.h compilation as c++
2025-02-18 18:39:26 +10:00
David Reid
a4d462e39e
Add initial CMake file.
2025-02-18 17:53:44 +10:00
David Reid
ef662aaddf
Add a sound for testing.
2025-02-18 17:51:37 +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
62d64d14bd
Fix an error with band-pass filters.
2025-02-18 17:26:53 +10:00
David Reid
cf9371748a
Fix compilation warnings with some tests.
2025-02-17 18:15:22 +10:00
David Reid
640d70c307
Add deprecation notice to old libopus and libvorbis custom decoders.
2025-02-17 18:14:40 +10:00
David Reid
46788d59a8
Rework the libvorbis and libopus custom decoders.
...
These decoders have been moved into their own subfolders under the
extras/decoders folder:
extras/decoders/libvorbis
extras/decoders/libopus
In addition to being relocated, they have also been split into separate
.c/h pairs. They now work like a more conventional library. The
implementation of these libraries have also been decoupled from the
miniaudio implementation which means they depend only on the header
section of miniaudio.h now.
With this change the custom_decoder and custom_decoder_engine examples
have been updated. To compile these you now need to link in the
miniaudio_libvorbis.c and miniaudio_libopus.c files via your build
tool. For your own code, you can still include the .c files directly
into your code if you want to compile as a single translation unit.
2025-02-17 16:57:47 +10:00
David Reid
01d6297bec
Fix some warnings with some more examples.
2025-02-17 16:52:54 +10:00
David Reid
de5f370d09
Fix some warnings with examples.
2025-02-17 16:01:19 +10:00
David Reid
47aa3e34e0
Update gitignore.
2025-02-17 15:59:40 +10:00
David Reid
445cdcb82b
AAudio: Fix a possible compilation error on older SDKs.
2025-02-17 10:28:43 +10:00
David Reid
34092dbfc8
Fix an unused parameter warning.
2025-02-17 09:44:09 +10:00
David Reid
14b986448f
Minor change to ma_calculate_buffer_size_in_milliseconds_from_frames().
2025-02-17 09:36:50 +10:00
David Reid
a6ac898663
Minor adjustment to a calculation.
2025-02-17 09:30:40 +10:00
Andrew Opalach
017f8944d3
WASAPI: Release mapped buffer before stopping device
2025-02-17 09:24:59 +10:00
Andrew Opalach
e15fd218be
WASAPI: Fix drain on device stop
2025-02-17 09:24:59 +10:00
David Reid
4c7021e53d
WASAPI: Fix an error when stopping a device.
2025-02-16 17:44:21 +10:00
David Reid
856494d253
Update docs for missing build options.
...
Public issue https://github.com/mackron/miniaudio/issues/942
2025-02-16 15:45:56 +10:00
David Reid
a0aac6b5ec
Remove reference to MA_HAS_OPUS.
2025-02-16 15:17:37 +10:00
David Reid
60c7c776b4
PulseAudio: Fix a possible race condition with device init.
2025-02-16 14:59:16 +10:00
David Reid
125e9226fb
Fix an error with ma_sound processing.
2025-02-16 13:18:52 +10:00
David Reid
4deb3d4c6a
Remove a stray space.
2025-02-16 13:17:52 +10:00
David Reid
3ffdbdc710
Add miniaudio.c.
...
This is in preparation for splitting miniaudio into a split .c/h pair,
away from a single header.
`MINIAUDIO_IMPLEMENTATION` is still supported, but will be removed in
version 0.12 and should be considered deprecated. It's recommended to
start the transition to the new .c file.
2025-02-16 10:30:00 +10:00
David Reid
9b9e71ab6c
PulseAudio: Fix an error with the construction of the stream name.
2025-02-13 11:15:32 +10:00
znakeeye
f39bbe2f4d
Revert "Fix for NDK issue 360. dlclose() skipped pre-API 28. This fixes weird crashes during uninit."
...
This reverts commit 14f698fcf2 .
2025-02-13 07:49:22 +10:00
znakeeye
79bb4d7a37
Improved fix for dlclose() bug on Android. Now applying fix for all backends on Android < 28.
2025-02-13 07:49:22 +10:00
znakeeye
f970144a3d
Fix for NDK issue 360. dlclose() skipped pre-API 28. This fixes weird crashes during uninit.
2025-02-13 07:49:22 +10:00
znakeeye
afc7e17fe6
Added MA_NO_RUNTIME_LINKING support for AAudio backend.
2025-02-13 07:49:22 +10:00
znakeeye
047200eace
Fixed double-free issue in AAudio backend.
2025-02-08 07:20:50 +10:00
HeroesOfBalkan
6d5efde254
Rename secondIndex variables to seekPointInSeconds
2025-01-22 09:24:38 +10:00
HeroesOfBalkan
9da8df1b9f
Add explicit casts to suppress -Wfloat-conversion warnings
2025-01-22 09:24:38 +10:00
HeroesOfBalkan
ed5964c9f6
Fix unused and unitialized variable warning
2025-01-22 09:24:38 +10:00
HeroesOfBalkan
7e81d3ac80
Refactor new methods to wrap around their PCM equivalents
2025-01-22 09:24:38 +10:00
HeroesOfBalkan
450dcb1af3
Fix bug returning success when NULL is passed & typo corrected in a comment
2025-01-22 09:24:38 +10:00
HeroesOfBalkan
38f7d29f6f
New API methods to seek data sources using seconds
2025-01-22 09:24:38 +10:00
David Reid
1fe39f949a
Fix a documentation error.
2025-01-21 13:04:24 +10:00