Commit Graph

261 Commits

Author SHA1 Message Date
David Reid f40cf03f80 Version 0.11.23 2025-09-11 06:46:45 +10:00
David Reid 18055f34bb voclib: Fix a compilation error. 2025-08-20 16:40:46 +10:00
David Reid f6bae251bd verblib: Try fixing a compilation error on macOS. 2025-08-20 16:09:44 +10:00
David Reid 11177ed19f Style and formatting changes. 2025-05-08 14:15:12 +10:00
caturria 682fad7d55 Revert accidental include change. 2025-05-08 14:04:57 +10:00
caturria 1497f5e467 Fix leaked OggVorbis_File handle when input is not vorbis. Also implements ma_libvorbis_get_length_in_pcm_frames() for the common case of an ogg file with a single bitstream. 2025-05-08 14:04:57 +10:00
David Reid 350784a946 Version 0.11.22 2025-02-24 16:31:42 +10:00
David Reid 8c52072f43 Remove const qualifiers from decoding backend vtable arrays. 2025-02-23 12:54:19 +10:00
David Reid b6184fa2a0 Fix some Wnewline-eof warnings. 2025-02-23 12:11:29 +10:00
David Reid 37b95f0f42 Remove unnecessary example.
The delay node is demonstrated in the engine_effects example.
2025-02-22 14:36:46 +10:00
David Reid 9f10bc7540 Improvements to the build system for extra nodes.
With this change, nodes in the extras folder can now be compiled as a
conventional library.
2025-02-22 14:25:45 +10:00
David Reid ff66923b9a Fix a compilation warning. 2025-02-19 18:05:53 +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 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 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 14a455143f Version control some osaudio files. 2025-01-18 14:20:13 +10:00
RainRat 3db49afa5b revert unneeded changes per request 2024-04-28 15:17:11 +10:00
RainRat aa98e1c493 fix typos 2024-04-28 15:17:11 +10:00
RainRat 3ba0595c6a fix typos 2024-04-11 12:40:39 +10:00
RainRat 4bc18bba5a revert unneeded changes per request 2024-04-11 12:40:39 +10:00
RainRat 26ce355703 fix typos 2024-04-11 12:40:39 +10:00
RainRat 2618c21415 revert unneeded changes per request 2024-03-01 08:35:45 +10:00
RainRat 030b9554c2 fix typos 2024-03-01 08:35:45 +10:00
David Reid 766a155fb3 Stop using MA_ASSERT in examples.
This is useful because MA_ASSERT is only defined in the implementation
section of miniaudio.h which can cause issues when people copy/paste
the code and use it in a file that does not have visibility of the
implementation.

Note that there are still more references to implementation-defined
macros, but these have been moved to the public section in the dev-0.12
branch so I'm not bothering to change those just yet.

Public issue https://github.com/mackron/miniaudio/issues/787
2023-12-17 08:42:19 +10:00
David Reid 2b8bb34ca2 Update split version for testing. 2023-11-29 07:31:38 +10:00
David Reid 4a5b74bef0 Version 0.11.21 2023-11-15 11:23:00 +10:00
Michael Labbé 8fcf6889aa Add new ma_device_notification_type_unlocked notification
Unlocked notification fires on emscripten upon successful resume of
audio context attached to a device.  This occurs only once per device
and it happens after the browser has received the input event
necessary to begin playing audio on most webpages.  This is due
to autoplay rules.

It is recommended to wait until this event is fired to start a
'main game loop' on the web.
2023-11-15 10:28:02 +10:00
David Reid 3b50a854ec Version 0.11.20 2023-11-10 07:44:19 +10:00
David Reid b19cc09fd0 Version 0.11.19 2023-11-04 07:05:24 +10:00
a.borisov fe5f17ecf3 fix misspells
occured -> occurred
aquired -> acquired
accomodate -> accommodate
seperate -> separate
etc.
2023-10-22 07:06:12 +10:00
David Reid 2922859ea9 Remove cosmo windows.h header. 2023-08-31 18:30:42 +10:00
nmlgc 70bf42392d Fix SSE2 sample swapping in mono expansion.
The SSE2 code paths for mono expansion introduced in Version 0.11.15
mixed up the parameters of `_mm_shuffle_ps()`, which in turn caused
adjacent PCM frames to be swapped in the channel-expanded output.
2023-08-30 08:37:12 +10:00
David Reid 9d461f6d5d Minor changes to osaudio. 2023-08-27 15:26:46 +10:00
David Reid 6539b67163 Remove an incorrect comment. 2023-08-27 15:25:08 +10:00
David Reid 1f8c86d9ca Fix a copy/paste error. 2023-08-22 21:20:35 +10:00
David Reid 509bd6d4f2 Fix some typos. 2023-08-17 20:56:42 +10:00
David Reid a81f09d93c Add osaudio to the extras folder.
This is just a small project to experiment with a few API ideas. This
is not a replacement for miniaudio or anything so don't panic.
2023-08-17 19:45:15 +10:00
David Reid 3898fff8ed Version 0.11.18 2023-08-07 11:05:14 +10:00
David Reid d76b9a1ac4 Version 0.11.17 2023-05-27 12:49:48 +10:00
David Reid ea205fb7b0 Version 0.11.16 2023-05-15 09:36:42 +10:00
David Reid 26b0a9ffc0 Version 0.11.15 2023-04-30 08:32:13 +10:00
David Reid 9a7663496f Version 0.11.14 2023-03-29 07:52:40 +10:00
David Reid fb9c18c705 Version 0.11.13 2023-03-23 07:33:23 +10:00
David Reid 6d71ce4121 Fix compilation errors with WIN32_LEAN_AND_MEAN.
Public issue https://github.com/mackron/miniaudio/discussions/647
2023-03-21 09:53:24 +10:00
David Reid 0a19c74417 Version 0.11.12 2023-03-19 20:58:13 +10:00
David Reid 0b9b382a53 Get DirectSound and WinMM backends compiling with Cosmopolitan.
Note that this does not currently work at runtime.
2023-03-18 12:39:56 +10:00
David Reid 9d3b59f0a9 Fix compilation errors with the WASAPI backend for Cosmopolitan. 2023-03-18 11:54:44 +10:00