port: experimental multithreaded audio

This commit is contained in:
fgsfds committed 2024-05-18 18:53:12 +02:00
1 parent e8e513fecb
commit 4c552a42f2
17 files changed
+186 -56

No files matched your search

+6 -1
View File
@@ -17,7 +17,12 @@ OSMesgQueue *amgrGetFrameMesgQueue(void);
void amgrStopThread(void);
#ifndef PLATFORM_N64
void amgrFrame(void);
void amgrLock(void);
void amgrUnlock(void);
void amgrUpdateFrameCounter(u32 framecount);
#else
#define amgrLock() do {} while(0)
#define amgrUnlock() do {} while(0)
#endif
#endif
+3
View File
@@ -34,6 +34,9 @@
#error "64-bit platforms are currently not supported."
#endif
// threading backend
#define PLATFORM_USE_PTHREAD 1
// detect endianness
#if defined(__BYTE_ORDER__) && defined(__ORDER_BIG_ENDIAN__)
#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__