浏览代码

Try to avoid collision with CoreAudio on macOS

pull/927/head
Ray 5 年前
父节点
当前提交
2cb3b91913
共有 2 个文件被更改,包括 3 次插入1 次删除
  1. +2
    -0
      src/raudio.c
  2. +1
    -1
      src/raylib.h

+ 2
- 0
src/raudio.c 查看文件

@ -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;

+ 1
- 1
src/raylib.h 查看文件

@ -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

正在加载...
取消
保存