fixed two warnings

This commit is contained in:
Volker Fischer 2015-11-13 21:13:59 +00:00
parent e674b21c0c
commit 233c34ba45

View File

@ -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] ) )
{