Try to avoid collision with CoreAudio on macOS

This commit is contained in:
Ray 2019-07-23 23:08:29 +02:00
parent 2433f30b4b
commit 2cb3b91913
2 changed files with 3 additions and 1 deletions

View File

@ -214,6 +214,8 @@ struct rAudioBuffer {
unsigned char *buffer;
};
#define AudioBuffer rAudioBuffer // HACK: To avoid CoreAudio (macOS) symbol collision
// miniaudio global variables
static ma_context context;
static ma_device device;

View File

@ -423,7 +423,7 @@ typedef struct AudioStream {
unsigned int sampleSize; // Bit depth (bits per sample): 8, 16, 32 (24 not supported)
unsigned int channels; // Number of channels (1-mono, 2-stereo)
AudioBuffer *buffer; // Pointer to internal data used by the audio system
rAudioBuffer *buffer; // Pointer to internal data used by the audio system
} AudioStream;
// Sound source type