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
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.
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.
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.
This reverts commit 0788be818b.
This change was technically incorrect. Reverting this change for now
until a better fix is in place. Likely this will require an extra
parameter for controlling this.