如何通过AudioServicesSetProperty设置kAudioServicesPropertyIsUISound?

时间:2009-03-16 21:26:26

标签: iphone

如何使用AudioServicesSetProperty将kAudioServicesPropertyIsUISound设置为0?感谢

1 个答案:

答案 0 :(得分:4)

假设您的SystemSoundID对象是“systemSoundID”

UInt32 flag = 0;
err = AudioServicesSetProperty(kAudioServicesPropertyIsUISound,
                               sizeof(UInt32),
                               &systemSoundID,
                               sizeof(UInt32),
                               &flag);