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";
|
strDriverNames[lNumDevs] = "System Default In/Out Devices";
|
||||||
|
|
||||||
iPropertySize = sizeof ( AudioDeviceID );
|
iPropertySize = sizeof ( AudioDeviceID );
|
||||||
if ( AudioHardwareGetProperty ( kAudioHardwarePropertyDefaultInputDevice,
|
AudioObjectPropertyAddress ePropertyInDevAddress = { kAudioHardwarePropertyDefaultInputDevice,
|
||||||
|
kAudioObjectPropertyScopeGlobal,
|
||||||
|
kAudioObjectPropertyElementMaster };
|
||||||
|
|
||||||
|
if ( AudioObjectGetPropertyData ( kAudioObjectSystemObject,
|
||||||
|
&ePropertyInDevAddress,
|
||||||
|
0,
|
||||||
|
NULL,
|
||||||
&iPropertySize,
|
&iPropertySize,
|
||||||
&audioInputDevice[lNumDevs] ) )
|
&audioInputDevice[lNumDevs] ) )
|
||||||
{
|
{
|
||||||
|
@ -170,7 +177,14 @@ CSound::CSound ( void (*fpNewProcessCallback) ( CVector<short>& psData, void* ar
|
||||||
}
|
}
|
||||||
|
|
||||||
iPropertySize = sizeof ( AudioDeviceID );
|
iPropertySize = sizeof ( AudioDeviceID );
|
||||||
if ( AudioHardwareGetProperty ( kAudioHardwarePropertyDefaultOutputDevice,
|
AudioObjectPropertyAddress ePropertyOutDevAddress = { kAudioHardwarePropertyDefaultOutputDevice,
|
||||||
|
kAudioObjectPropertyScopeGlobal,
|
||||||
|
kAudioObjectPropertyElementMaster };
|
||||||
|
|
||||||
|
if ( AudioObjectGetPropertyData ( kAudioObjectSystemObject,
|
||||||
|
&ePropertyOutDevAddress,
|
||||||
|
0,
|
||||||
|
NULL,
|
||||||
&iPropertySize,
|
&iPropertySize,
|
||||||
&audioOutputDevice[lNumDevs] ) )
|
&audioOutputDevice[lNumDevs] ) )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue