osx: fix gcc warnings
Fix prototypes and unused variables.
This commit is contained in:
parent
37696dcbbf
commit
d7b2d93ccc
@ -33,7 +33,7 @@ typedef struct _OsxData {
|
|||||||
int started;
|
int started;
|
||||||
} OsxData;
|
} OsxData;
|
||||||
|
|
||||||
static OsxData *newOsxData()
|
static OsxData *newOsxData(void)
|
||||||
{
|
{
|
||||||
OsxData *ret = xmalloc(sizeof(OsxData));
|
OsxData *ret = xmalloc(sizeof(OsxData));
|
||||||
|
|
||||||
@ -49,7 +49,7 @@ static OsxData *newOsxData()
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool osx_testDefault()
|
static bool osx_testDefault(void)
|
||||||
{
|
{
|
||||||
/*AudioUnit au;
|
/*AudioUnit au;
|
||||||
ComponentDescription desc;
|
ComponentDescription desc;
|
||||||
@ -128,11 +128,12 @@ static void osx_closeDevice(void *data)
|
|||||||
AudioUnitUninitialize(od->au);
|
AudioUnitUninitialize(od->au);
|
||||||
}
|
}
|
||||||
|
|
||||||
static OSStatus osx_render(void *vdata,
|
static OSStatus
|
||||||
AudioUnitRenderActionFlags * ioActionFlags,
|
osx_render(void *vdata,
|
||||||
const AudioTimeStamp * inTimeStamp,
|
mpd_unused AudioUnitRenderActionFlags * ioActionFlags,
|
||||||
UInt32 inBusNumber, UInt32 inNumberFrames,
|
mpd_unused const AudioTimeStamp * inTimeStamp,
|
||||||
AudioBufferList * bufferList)
|
mpd_unused UInt32 inBusNumber, mpd_unused UInt32 inNumberFrames,
|
||||||
|
AudioBufferList * bufferList)
|
||||||
{
|
{
|
||||||
OsxData *od = (OsxData *) vdata;
|
OsxData *od = (OsxData *) vdata;
|
||||||
AudioBuffer *buffer = &bufferList->mBuffers[0];
|
AudioBuffer *buffer = &bufferList->mBuffers[0];
|
||||||
|
Loading…
Reference in New Issue
Block a user