possible fix for a crash for some external audio interfaces
This commit is contained in:
parent
0afcb177a5
commit
75e38864d9
1 changed files with 7 additions and 6 deletions
|
@ -252,12 +252,13 @@ void CSound::GetAudioDeviceInfos ( const AudioDeviceID DeviceID,
|
|||
char* sC_strPropValue =
|
||||
(char*) malloc ( CFStringGetLength ( sPropertyStringValue ) + 1 );
|
||||
|
||||
CFStringGetCString ( sPropertyStringValue,
|
||||
sC_strPropValue,
|
||||
CFStringGetLength ( sPropertyStringValue ) + 1,
|
||||
kCFStringEncodingISOLatin1 );
|
||||
|
||||
strDeviceName = sC_strPropValue;
|
||||
if ( CFStringGetCString ( sPropertyStringValue,
|
||||
sC_strPropValue,
|
||||
CFStringGetLength ( sPropertyStringValue ) + 1,
|
||||
kCFStringEncodingISOLatin1 ) )
|
||||
{
|
||||
strDeviceName = sC_strPropValue;
|
||||
}
|
||||
}
|
||||
|
||||
// check if device is input or output or both (is that possible?)
|
||||
|
|
Loading…
Reference in a new issue