Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
miniaudio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
miniaudio
Commits
44735d45
Commit
44735d45
authored
Mar 17, 2023
by
David Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Just some placeholder Cosmopolitan stuff.
parent
1f4dc5c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
8 deletions
+20
-8
miniaudio.h
miniaudio.h
+20
-8
No files found.
miniaudio.h
View file @
44735d45
...
@@ -6278,12 +6278,23 @@ This section contains the APIs for device playback and capture. Here is where yo
...
@@ -6278,12 +6278,23 @@ 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__)
#define MA_SUPPORT_WASAPI
#if !defined(__COSMOPOLITAN__)
#if defined(MA_WIN32_DESKTOP) /* DirectSound and WinMM backends are only supported on desktops. */
#define MA_SUPPORT_WASAPI
#define MA_SUPPORT_DSOUND
#endif
#define MA_SUPPORT_WINMM
#define MA_SUPPORT_JACK /* JACK is technically supported on Windows, but I don't know how many people use it in practice... */
#if defined(MA_WIN32_DESKTOP) || defined(__COSMOPOLITAN__) /* DirectSound and WinMM backends are only supported on desktops. */
#if !defined(__COSMOPOLITAN__)
#define MA_SUPPORT_DSOUND
#endif
#if !defined(__COSMOPOLITAN__)
#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... */
#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)
...
@@ -31309,10 +31320,11 @@ static ma_result ma_context_init__jack(ma_context* pContext, const ma_context_co
...
@@ -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[] = {
#if
def 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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment