mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-23 16:54:03 +02:00
Just some placeholder Cosmopolitan stuff.
This commit is contained in:
+16
-4
@@ -6278,13 +6278,24 @@ This section contains the APIs for device playback and capture. Here is where yo
|
|||||||
************************************************************************************************************************************************************/
|
************************************************************************************************************************************************************/
|
||||||
#ifndef MA_NO_DEVICE_IO
|
#ifndef MA_NO_DEVICE_IO
|
||||||
/* Some backends are only supported on certain platforms. */
|
/* Some backends are only supported on certain platforms. */
|
||||||
#if defined(MA_WIN32)
|
#if defined(MA_WIN32) || defined(__COSMOPOLITAN__)
|
||||||
|
#if !defined(__COSMOPOLITAN__)
|
||||||
#define MA_SUPPORT_WASAPI
|
#define MA_SUPPORT_WASAPI
|
||||||
#if defined(MA_WIN32_DESKTOP) /* DirectSound and WinMM backends are only supported on desktops. */
|
#endif
|
||||||
|
|
||||||
|
#if defined(MA_WIN32_DESKTOP) || defined(__COSMOPOLITAN__) /* DirectSound and WinMM backends are only supported on desktops. */
|
||||||
|
#if !defined(__COSMOPOLITAN__)
|
||||||
#define MA_SUPPORT_DSOUND
|
#define MA_SUPPORT_DSOUND
|
||||||
|
#endif
|
||||||
|
#if !defined(__COSMOPOLITAN__)
|
||||||
#define MA_SUPPORT_WINMM
|
#define MA_SUPPORT_WINMM
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Don't enable JACK here if compiling with Cosmopolitan. */
|
||||||
|
#if !defined(__COSMOPOLITAN__)
|
||||||
#define MA_SUPPORT_JACK /* JACK is technically supported on Windows, but I don't know how many people use it in practice... */
|
#define MA_SUPPORT_JACK /* JACK is technically supported on Windows, but I don't know how many people use it in practice... */
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#if defined(MA_UNIX) && !defined(MA_ORBIS) && !defined(MA_PROSPERO)
|
#if defined(MA_UNIX) && !defined(MA_ORBIS) && !defined(MA_PROSPERO)
|
||||||
#if defined(MA_LINUX)
|
#if defined(MA_LINUX)
|
||||||
@@ -31309,10 +31320,11 @@ static ma_result ma_context_init__jack(ma_context* pContext, const ma_context_co
|
|||||||
{
|
{
|
||||||
#ifndef MA_NO_RUNTIME_LINKING
|
#ifndef MA_NO_RUNTIME_LINKING
|
||||||
const char* libjackNames[] = {
|
const char* libjackNames[] = {
|
||||||
#ifdef MA_WIN32
|
#if defined(MA_WIN32) || defined(__COSMOPOLITAN__)
|
||||||
"libjack.dll",
|
"libjack.dll",
|
||||||
"libjack64.dll"
|
"libjack64.dll"
|
||||||
#else
|
#endif
|
||||||
|
#if defined(MA_UNIX)
|
||||||
"libjack.so",
|
"libjack.so",
|
||||||
"libjack.so.0"
|
"libjack.so.0"
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user