[Core] Improve iOS compilation workflow
This commit is contained in:
@@ -4,4 +4,6 @@
|
||||
#define MA_NO_ENCODING
|
||||
#define MINIAUDIO_IMPLEMENTATION
|
||||
|
||||
#include "miniaudio.h"
|
||||
#ifndef PANDA3DS_IOS
|
||||
#include "miniaudio.h"
|
||||
#endif
|
||||
8
src/miniaudio/miniaudio.m
Normal file
8
src/miniaudio/miniaudio.m
Normal file
@@ -0,0 +1,8 @@
|
||||
// We do not need the ability to be able to encode or decode audio files for the time being
|
||||
// So we disable said functionality to make the executable smaller.
|
||||
#define MA_NO_DECODING
|
||||
#define MA_NO_ENCODING
|
||||
#define MINIAUDIO_IMPLEMENTATION
|
||||
|
||||
// On iOS we have to compile miniaudio as Obj-C
|
||||
#include "miniaudio.h"
|
||||
Reference in New Issue
Block a user