Commit Graph

3556 Commits

Author SHA1 Message Date
David Reid d027845659 Update copyright dates. 2023-03-18 16:29:38 +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
David Reid 18b4ac2433 Fix Windows/Cosmopolitan build. 2023-03-18 10:03:54 +10:00
David Reid f192b25eb7 Remove some code duplication. 2023-03-18 09:56:29 +10:00
David Reid ef0aa3c949 Rearrange some code. 2023-03-18 09:52:09 +10:00
David Reid 9bb3467b74 Revert an accidental change. 2023-03-18 09:30:13 +10:00
David Reid a65191f418 Code cleanup.
The Cosmopolitan-specific windows.h stuff has now been moved to an
external file in the extras folder:

    extras/cosmopolitan/include/windows.h

To compile with Cosmpolitan it is now required that you add the above
path to the command line when compiling.
2023-03-18 09:28:55 +10:00
David Reid ff6592be45 Remove the Windows-specific default memcpy(), malloc(), etc. 2023-03-18 08:58:55 +10:00
David Reid ba58c9bf47 Some code cleanup. 2023-03-18 08:53:16 +10:00
David Reid 90dff7fd1d More Windows/Cosmopolitan work. 2023-03-18 08:33:11 +10:00
David Reid 774583c90e More work on the Windows Cosmopolitan build.
The Windows build now compilers with this commit.
2023-03-18 07:42:23 +10:00
David Reid 644f731285 Some experimental work with Cosmopolitan for the Windows build.
This is just an experiment. Cosmopolitan is not officially being
supported.

The Windows build does not compile with this commit.
2023-03-18 07:24:08 +10:00
David Reid 3edaebf507 Fix a padding related error with WAVEFORMATEX. 2023-03-17 17:31:15 +10:00
David Reid 44735d4501 Just some placeholder Cosmopolitan stuff. 2023-03-17 16:53:21 +10:00
David Reid 1f4dc5c251 Add early experimental support for Cosmopolitan.
Public issue https://github.com/mackron/miniaudio/issues/495
2023-03-17 16:09:06 +10:00
David Reid 4da843bab6 Remove a dependency on a system header and change alignas to _Alignas. 2023-03-17 15:38:07 +10:00
David Reid f06a75787b Fix a typo. 2023-03-17 12:35:24 +10:00
David Reid 8489a86e26 Update documentation. 2023-03-17 12:15:35 +10:00
David Reid 695e750c34 Add support for callback notifications when a sound reaches the end. 2023-03-17 12:05:56 +10:00
David Reid 6f5c86070e Add a configuration option to spatializers. 2023-03-17 10:53:28 +10:00
David Reid 6d9379f6f5 Try getting sample exact seeking working with stb_vorbis. 2023-03-17 10:11:17 +10:00
David Reid a8682c3602 Add support for configuring the stack size of resource manager threads. 2023-03-16 21:56:19 +10:00
David Reid 6132b5d4fe Update tests readme regarding the Emscripten build. 2023-03-16 12:29:15 +10:00
David Reid 7460d986f9 Merge branch 'dev' of https://github.com/mackron/miniaudio into dev 2023-03-11 09:14:01 +10:00
David Reid dc77ad0148 Fix compilation error when the resource manager is disabled. 2023-03-11 09:13:04 +10:00
Rizhen Zhang 25925a307a If a device a loopback device, consider dataflow as capture dataflow 2023-03-11 10:11:55 +11:00
Johan Mattsson 9ead8c2913 Fix potential index out of bounds 2023-03-06 10:15:47 +11:00
David Reid 750e83fbc1 Add support for callback notifications to ma_sound_init_ex().
Public issue https://github.com/mackron/miniaudio/discussions/637
2023-02-28 11:26:52 +10:00
David Reid dfcff26a26 Clean up some of the AudioWorklets code. 2023-02-28 11:26:18 +10:00
David Reid bfd66ab4d2 Add a very simple Emscripten-specific test.
This will be expanded on later to be a lot more complete.
2023-02-28 11:24:58 +10:00
David Reid 1f37940923 Minor improvement to the simple_playback_sine example. 2023-02-28 11:23:24 +10:00
David Reid a54b5eb04d Remove an invalid item from the change history. 2023-02-28 11:22:44 +10:00
David Reid b4deb4fce2 WebAudio: Clean up uninitialization. 2023-02-25 21:29:24 +10:00
David Reid 25885e4163 WebAudio: Add early experimental support for AudioWorklets.
Public issue https://github.com/mackron/miniaudio/issues/597.
2023-02-25 20:37:26 +10:00
David Reid a1b0ab98fd WebAudio: Fix error about missing _malloc() and _free() functions. 2023-02-25 08:19:04 +10:00
David Reid e2db423078 Fix a memcpy error. 2023-02-24 08:12:52 +10:00
David Reid bc393dbba8 Experimental workaround for an Android bug in AAudio. 2023-02-01 13:27:43 +10:00
David Reid 6720b51194 Merge branch 'dev' of https://github.com/mackron/miniaudio into dev 2023-01-23 12:56:47 +10:00
David Reid 2d998e37a4 Experimental support for passthrough nodes with zero inputs. 2023-01-23 12:56:32 +10:00
Kaisei Sunaga 49e69ac0ee fix tab 2023-01-21 08:31:58 +11:00
Kaisei Sunaga a3b6797da3 fix compilation error 2023-01-21 08:31:58 +11:00
kaisei.sunaga 7c6366d9c2 add AAudioStreamBuilder_setAllowedCapturePolicy 2023-01-21 08:31:58 +11:00
cdigit 6de98570f6 Update duplex_effect.c 2023-01-14 10:33:24 +11:00
David Reid 981e1ddac7 Fix an error in the documentation. 2023-01-12 14:31:09 +10:00
David Reid 324ebe2500 Update documentation. 2023-01-07 20:11:44 +10:00
David Reid e0a9bf1b69 Fix some invalid code in example. 2023-01-06 11:03:46 +10:00
David Reid 31e139668d Update readme. 2023-01-06 10:54:43 +10:00
David Reid 7ff8505d3b Update backends table. 2023-01-06 10:51:23 +10:00
David Reid 293d7a68c2 Minor code rearrangement. 2023-01-06 10:36:31 +10:00