fixed another warning
This commit is contained in:
parent
89f8578efb
commit
8d15994159
2 changed files with 12 additions and 11 deletions
|
@ -347,10 +347,13 @@ QString CSound::LoadAndInitializeDriver ( int iDriverIdx )
|
||||||
// TODO why is only the input enough...?
|
// TODO why is only the input enough...?
|
||||||
|
|
||||||
// setup callback for xruns (only for input is enough)
|
// setup callback for xruns (only for input is enough)
|
||||||
AudioDeviceAddPropertyListener ( audioInputDevice[lCurDev],
|
AudioObjectPropertyAddress stPropertyAddress;
|
||||||
0,
|
stPropertyAddress.mSelector = kAudioDeviceProcessorOverload;
|
||||||
true,
|
stPropertyAddress.mScope = kAudioObjectPropertyScopeGlobal;
|
||||||
kAudioDeviceProcessorOverload,
|
stPropertyAddress.mElement = kAudioObjectPropertyElementMaster;
|
||||||
|
|
||||||
|
AudioObjectAddPropertyListener ( audioInputDevice[lCurDev],
|
||||||
|
&stPropertyAddress,
|
||||||
deviceNotification,
|
deviceNotification,
|
||||||
this );
|
this );
|
||||||
}
|
}
|
||||||
|
@ -539,13 +542,12 @@ UInt32 CSound::SetBufferSize ( AudioDeviceID& audioDeviceID,
|
||||||
|
|
||||||
OSStatus CSound::deviceNotification ( AudioDeviceID,
|
OSStatus CSound::deviceNotification ( AudioDeviceID,
|
||||||
UInt32,
|
UInt32,
|
||||||
Boolean,
|
const AudioObjectPropertyAddress* inAddresses,
|
||||||
AudioDevicePropertyID inPropertyID,
|
|
||||||
void* inRefCon )
|
void* inRefCon )
|
||||||
{
|
{
|
||||||
CSound* pSound = static_cast<CSound*> ( 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
|
// xrun handling (it is important to act on xruns under CoreAudio
|
||||||
// since it seems that the xrun situation stays stable for a
|
// since it seems that the xrun situation stays stable for a
|
||||||
|
|
|
@ -71,8 +71,7 @@ protected:
|
||||||
// callbacks
|
// callbacks
|
||||||
static OSStatus deviceNotification ( AudioDeviceID,
|
static OSStatus deviceNotification ( AudioDeviceID,
|
||||||
UInt32,
|
UInt32,
|
||||||
Boolean,
|
const AudioObjectPropertyAddress* inAddresses,
|
||||||
AudioDevicePropertyID inPropertyID,
|
|
||||||
void* inRefCon );
|
void* inRefCon );
|
||||||
|
|
||||||
static OSStatus processInput ( void* inRefCon,
|
static OSStatus processInput ( void* inRefCon,
|
||||||
|
|
Loading…
Reference in a new issue