fixed two warnings
This commit is contained in:
parent
e674b21c0c
commit
233c34ba45
1 changed files with 21 additions and 7 deletions
|
@ -161,7 +161,14 @@ CSound::CSound ( void (*fpNewProcessCallback) ( CVector<short>& psData, void* ar
|
|||
strDriverNames[lNumDevs] = "System Default In/Out Devices";
|
||||
|
||||
iPropertySize = sizeof ( AudioDeviceID );
|
||||
if ( AudioHardwareGetProperty ( kAudioHardwarePropertyDefaultInputDevice,
|
||||
AudioObjectPropertyAddress ePropertyInDevAddress = { kAudioHardwarePropertyDefaultInputDevice,
|
||||
kAudioObjectPropertyScopeGlobal,
|
||||
kAudioObjectPropertyElementMaster };
|
||||
|
||||
if ( AudioObjectGetPropertyData ( kAudioObjectSystemObject,
|
||||
&ePropertyInDevAddress,
|
||||
0,
|
||||
NULL,
|
||||
&iPropertySize,
|
||||
&audioInputDevice[lNumDevs] ) )
|
||||
{
|
||||
|
@ -170,7 +177,14 @@ CSound::CSound ( void (*fpNewProcessCallback) ( CVector<short>& psData, void* ar
|
|||
}
|
||||
|
||||
iPropertySize = sizeof ( AudioDeviceID );
|
||||
if ( AudioHardwareGetProperty ( kAudioHardwarePropertyDefaultOutputDevice,
|
||||
AudioObjectPropertyAddress ePropertyOutDevAddress = { kAudioHardwarePropertyDefaultOutputDevice,
|
||||
kAudioObjectPropertyScopeGlobal,
|
||||
kAudioObjectPropertyElementMaster };
|
||||
|
||||
if ( AudioObjectGetPropertyData ( kAudioObjectSystemObject,
|
||||
&ePropertyOutDevAddress,
|
||||
0,
|
||||
NULL,
|
||||
&iPropertySize,
|
||||
&audioOutputDevice[lNumDevs] ) )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue