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
0f392b8b
Commit
0f392b8b
authored
Nov 21, 2022
by
thedmd
Committed by
David Reid
Nov 21, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Compile cleanly on Switch.
parent
239a6138
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
miniaudio.h
miniaudio.h
+8
-1
No files found.
miniaudio.h
View file @
0f392b8b
...
@@ -3836,6 +3836,9 @@ typedef ma_uint16 wchar_t;
...
@@ -3836,6 +3836,9 @@ typedef ma_uint16 wchar_t;
#ifdef __EMSCRIPTEN__
#ifdef __EMSCRIPTEN__
#define MA_EMSCRIPTEN
#define MA_EMSCRIPTEN
#endif
#endif
#if defined(__NX__)
#define MA_NX
#endif
#endif
#endif
...
@@ -11220,6 +11223,10 @@ IMPLEMENTATION
...
@@ -11220,6 +11223,10 @@ IMPLEMENTATION
#include <pthread.h>
#include <pthread.h>
#endif
#endif
#ifdef MA_NX
#include <time.h> /* For nanosleep() */
#endif
#include <sys/stat.h> /* For fstat(), etc. */
#include <sys/stat.h> /* For fstat(), etc. */
#ifdef MA_EMSCRIPTEN
#ifdef MA_EMSCRIPTEN
...
@@ -11631,7 +11638,7 @@ static void ma_sleep__posix(ma_uint32 milliseconds)
...
@@ -11631,7 +11638,7 @@ static void ma_sleep__posix(ma_uint32 milliseconds)
(void)milliseconds;
(void)milliseconds;
MA_ASSERT(MA_FALSE); /* The Emscripten build should never sleep. */
MA_ASSERT(MA_FALSE); /* The Emscripten build should never sleep. */
#else
#else
#if
defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 199309L
#if
(defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 199309L) || defined(MA_NX)
struct timespec ts;
struct timespec ts;
ts.tv_sec = milliseconds / 1000;
ts.tv_sec = milliseconds / 1000;
ts.tv_nsec = milliseconds % 1000 * 1000000;
ts.tv_nsec = milliseconds % 1000 * 1000000;
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