iPhone - Code of system sounds

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 ?

Answers


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.


The only one I'm aware of is kSystemSoundID_Vibrate, in AudioToolbox/AudioServices.h.


Need Your Help

Is there a way in VS2008 to search through a watch or a quickwatch for a particular value?

c# visual-studio visual-studio-2008 debugging

Suppose I am watching something in VS2008 and I want to search the object I'm watching for an instance of a particular value.

Compiling LESS CSS with Maven and m2e-wtp

eclipse maven less m2e m2e-wtp

I'm trying to compile LESS CSS files with lesscss-maven-plugin, both in pure maven (with command line) and within Eclipse (Juno).