fixed another warning

This commit is contained in:
Volker Fischer 2015-11-13 22:27:25 +00:00
parent 89f8578efb
commit 8d15994159
2 changed files with 12 additions and 11 deletions

View File

@ -347,10 +347,13 @@ QString CSound::LoadAndInitializeDriver ( int iDriverIdx )
// TODO why is only the input enough...?
// setup callback for xruns (only for input is enough)
AudioDeviceAddPropertyListener ( audioInputDevice[lCurDev],
0,
true,
kAudioDeviceProcessorOverload,
AudioObjectPropertyAddress stPropertyAddress;
stPropertyAddress.mSelector = kAudioDeviceProcessorOverload;
stPropertyAddress.mScope = kAudioObjectPropertyScopeGlobal;
stPropertyAddress.mElement = kAudioObjectPropertyElementMaster;
AudioObjectAddPropertyListener ( audioInputDevice[lCurDev],
&stPropertyAddress,
deviceNotification,
this );
}
@ -539,13 +542,12 @@ UInt32 CSound::SetBufferSize ( AudioDeviceID& audioDeviceID,
OSStatus CSound::deviceNotification ( AudioDeviceID,
UInt32,
Boolean,
AudioDevicePropertyID inPropertyID,
void* inRefCon )
const AudioObjectPropertyAddress* inAddresses,
void* inRefCon )
{
CSound* pSound = static_cast<CSound*> ( inRefCon );
if ( inPropertyID == kAudioDeviceProcessorOverload )
if ( inAddresses->mSelector == kAudioDeviceProcessorOverload )
{
// xrun handling (it is important to act on xruns under CoreAudio
// since it seems that the xrun situation stays stable for a

View File

@ -71,9 +71,8 @@ protected:
// callbacks
static OSStatus deviceNotification ( AudioDeviceID,
UInt32,
Boolean,
AudioDevicePropertyID inPropertyID,
void* inRefCon );
const AudioObjectPropertyAddress* inAddresses,
void* inRefCon );
static OSStatus processInput ( void* inRefCon,
AudioUnitRenderActionFlags* ioActionFlags,