What are the system sounds for AudioServicesPlaySystemSound? [duplicate]
Asked Answered
E

2

11

This is just a question that came off of the top of my head, but does anyone know if there are more sounds built into the system besides the (0x450) click sound? I would assume that there are others that can be put into apps since there are a lot more than just one built into the iPhone.

Eun answered 28/12, 2011 at 21:5 Comment(1)
See github.com/klaas/SwiftySystemSounds a sample app that lets you play all available ones on an iOS device.Tolly
D
20

There is a list posted to AudioServices - iPhone Development Wiki. I've not yet figured out if using this in the following way is grounds for rejection:

AudioServicesPlaySystemSound(1103);

Don't forget to include:

#import <AudioToolbox/AudioToolbox.h>
Detect answered 7/11, 2012 at 18:23 Comment(1)
Please note that this does not work in the simulator! Works fine in the devices.Childs
G
2

Check all system sounds with: iOSSystemSoundsLibrary

Grider answered 12/10, 2013 at 22:16 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.