2
AudioServicesSetProperty를 사용하여 kAudioServicesPropertyIsUISound를 0으로 설정하는 방법은 무엇입니까? 당신의 SystemSoundID 개체 가정 덕분에AudioServicesSetProperty를 통해 kAudioServicesPropertyIsUISound를 어떻게 설정합니까?
AudioServicesSetProperty를 사용하여 kAudioServicesPropertyIsUISound를 0으로 설정하는 방법은 무엇입니까? 당신의 SystemSoundID 개체 가정 덕분에AudioServicesSetProperty를 통해 kAudioServicesPropertyIsUISound를 어떻게 설정합니까?
"systemSoundID"
UInt32 flag = 0;
err = AudioServicesSetProperty(kAudioServicesPropertyIsUISound,
sizeof(UInt32),
&systemSoundID,
sizeof(UInt32),
&flag);
선생님 나는 그것이 작동하지 않는이 사용하고있다. 제 코드를 확인하십시오. –
SystemSoundID soundID; INT ERR = AudioServicesSetProperty (kAudioServicesPropertyIsUISound, 를 sizeof (UINT32) 및 UILocalNotificationDefaultSoundName, 를 sizeof (UINT32) &flag); AudioServicesPlaySystemSound (ERR); –