Reeds
Reeds

Reputation: 221

How do you set kAudioServicesPropertyIsUISound via AudioServicesSetProperty?

How do you set kAudioServicesPropertyIsUISound to 0 using AudioServicesSetProperty? Thanks

Upvotes: 3

Views: 1120

Answers (1)

mmc
mmc

Reputation: 17414

Assuming your SystemSoundID object is "systemSoundID"

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

Upvotes: 5

Related Questions