- 19 Aug, 2025 2 commits
-
-
David Reid authored
-
David Reid authored
-
- 07 Aug, 2025 7 commits
-
-
David Reid authored
-
David Reid authored
This forces `MA_NO_THREADING` and `MA_NO_RUNTIME_LINKING`. The DOS/DJGPP build currently requires `MA_NO_DEVICE_IO`.
-
David Reid authored
Public issue https://github.com/mackron/miniaudio/issues/1019
-
David Reid authored
-
David Reid authored
This disables the WASAPI, DirectSound and WinMM backends which means you will not get any actual audio output working. An Xbox backend will need to come later. The main purpose of this commit is to get the main library compiling. The main complication arises from the fact that both _WIN32 and _MSC_VER are defined which makes miniaudio think it's using a normal desktop Windows build. In practice it mostly works, but there's a few things needing to be changed specifically for NXDK: - `fopen_s()` is not a thing with NXDK. It always uses `fopen()`. - There is no `_wfopen()`, nor `wcsrtombs()`, so attempting to open a file from a wide character string will fail. - There is also no `CreateFileW()`, so this code path will also result in an error if you attempt to open a file from a wide character path. - `CoInitialize()` is not a thing with NXDK and has therefore been excluded from the build. - `GetFileInformationByHandle()` does not exist, and neither does `struct stat` or `stat()`. Since the only file information miniaudio attempts to retrieve is the file size, I've implemented a fall back which uses the seek/tell/seek pattern when info retrieval is unavailable. - A fall back has been implemented for comparing wide character path extensions which performs a case-sensitive compare instead. This means that if you are using wide character paths, miniaudio will not detect an extension like "wav" and "WAV" as the same thing. This might be made more robust later if there is enough demand. Public issue https://github.com/mackron/miniaudio/issues/1023 -
David Reid authored
This should improve compiler compatibility for those that do not define `CreateSemaphoreW()`, such as NXDK.
-
David Reid authored
-
- 23 Jul, 2025 3 commits
-
-
David Reid authored
-
David Reid authored
-
David Reid authored
-
- 22 Jul, 2025 1 commit
-
-
David Reid authored
-
- 21 Jul, 2025 5 commits
-
-
David Reid authored
-
David Reid authored
-
Marcin Serwin authored
Signed-off-by:Marcin Serwin <marcin@serwin.dev>
-
Marcin Serwin authored
Fixes https://github.com/mackron/miniaudio/pull/1010#issuecomment-3093830252Signed-off-by:
Marcin Serwin <marcin@serwin.dev>
-
Marcin Serwin authored
The default for creating libraries is static but can be overridden by setting BUILD_SHARED_LIBS variable. Setting it explicitly makes it impossible to override. https://cmake.org/cmake/help/latest/variable/BUILD_SHARED_LIBS.htmlSigned-off-by:
Marcin Serwin <marcin@serwin.dev>
-
- 20 Jul, 2025 3 commits
-
-
David Reid authored
-
andy5995 authored
Harmless warning on FreeBSD 14.2, https://cirrus-ci.com/task/4700955851096064?logs=build#L44 ``` ../subprojects/miniaudio-0.11.22/miniaudio.h:36997:36: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] 36997 | static int ma_open_temp_device__oss() | ^ | void ```
-
David Reid authored
-
- 04 Jul, 2025 2 commits
-
-
David Reid authored
-
David Reid authored
-
- 02 Jul, 2025 4 commits
-
-
David Reid authored
-
Sam Tupy authored
In ma_resource_manager_data_buffer_node_acquire_critical_section, a job which releases already acquired fences is either processed or posted based on MA_RESOURCE_MANAGER_DATA_SOURCE_FLAG_WAIT_INIT. However on job post or process failure, the fences were being unconditionally released. This commit moves the fence releases in acquire_critical_section down into a nested branch which only executes if MA_RESOURCE_MANAGER_DATA_SOURCE_FLAG_WAIT_INIT is not set, causing the fence release to take place only if the job failed to post while relying on the job itself to release the fences if it processes rather than causing a duplicate ma_fence_release and thus an eventual assertion failure.
-
David Reid authored
-
David Reid authored
-
- 09 Jun, 2025 1 commit
-
-
David Reid authored
This applies when MA_NO_NEON or MA_NO_SSE2 is set. Public issue https://github.com/mackron/miniaudio/issues/997
-
- 19 May, 2025 1 commit
-
-
Guillaume Prieur authored
-
- 11 May, 2025 1 commit
-
-
David Reid authored
-
- 08 May, 2025 8 commits
-
-
David Reid authored
-
caturria authored
-
caturria authored
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.
-
David Reid authored
-
Keith authored
-
Keith authored
All Miniaudio static libraries now install their headers such that they can still use relative paths, but external code can #include "miniaudio/miniaudio.h" Also adds a CMake macro to simplify adding static libraries
-
David Reid authored
-
David Reid authored
-
- 30 Apr, 2025 2 commits
-
-
David Reid authored
-
David Reid authored
-