Reputation: 23550
Do you know where I can find the list of constants that points to iOS system sounds, to make me able to give them to the AudioServicesCreateSystemSoundID method ?
Upvotes: 6
Views: 7626
Reputation: 1890
This is from AudioServices.h
:
//==================================================================================================
#pragma mark AudioServices Constants
/*!
@enum AudioServices constants
@abstract Constants for use with System Sound portion of the AudioServices APIs.
@constant kSystemSoundID_UserPreferredAlert
Use this constant with the play sound APIs to
playback the alert sound selected by the User in System Preferences.
@constant kSystemSoundID_Vibrate
Use this constant with the play sound APIs to vibrate the device
- iPhone only
- on a device with no vibration capability (like iPod Touch) this will
do nothing
@constant kSystemSoundID_FlashScreen
Use this constant with the play sound APIs to flash the screen
- Desktop systems only
*/
enum
{
#if TARGET_OS_IPHONE
kSystemSoundID_Vibrate = 0x00000FFF
#else
kSystemSoundID_UserPreferredAlert = 0x00001000,
kSystemSoundID_FlashScreen = 0x00000FFE,
// this has been renamed to be consistent
kUserPreferredAlert = kSystemSoundID_UserPreferredAlert
#endif
};
Hope this helps.
Upvotes: 1
Reputation: 3478
The only one I'm aware of is kSystemSoundID_Vibrate
, in AudioToolbox/AudioServices.h.
Upvotes: 0