include/SDL_hints.h
changeset 11501 8ab64b5850ae
parent 11284 3db78361e751
child 11658 fbfdee28682d
     1.1 --- a/include/SDL_hints.h	Thu Sep 14 21:45:14 2017 +0200
     1.2 +++ b/include/SDL_hints.h	Fri Sep 15 17:27:32 2017 -0700
     1.3 @@ -855,6 +855,19 @@
     1.4  #define SDL_HINT_AUDIO_RESAMPLING_MODE   "SDL_AUDIO_RESAMPLING_MODE"
     1.5  
     1.6  /**
     1.7 + *  \brief  A variable controlling the audio category on iOS and Mac OS X
     1.8 + *
     1.9 + *  This variable can be set to the following values:
    1.10 + *
    1.11 + *    "ambient"     - Use the AVAudioSessionCategoryAmbient audio category, will be muted by the phone mute switch (default)
    1.12 + *    "playback"    - Use the AVAudioSessionCategoryPlayback category
    1.13 + *
    1.14 + *  For more information, see Apple's documentation:
    1.15 + *  https://developer.apple.com/library/content/documentation/Audio/Conceptual/AudioSessionProgrammingGuide/AudioSessionCategoriesandModes/AudioSessionCategoriesandModes.html
    1.16 + */
    1.17 +#define SDL_HINT_AUDIO_CATEGORY   "SDL_AUDIO_CATEGORY"
    1.18 +
    1.19 +/**
    1.20   *  \brief  An enumeration of hint priorities
    1.21   */
    1.22  typedef enum