include/SDL_audio.h
changeset 11415 41bc8b8e9758
parent 11319 86b1fde471c6
child 11631 150b925ddfbb
equal deleted inserted replaced
11414:26a5f8318ba4 11415:41bc8b8e9758
   449 /**
   449 /**
   450  *  This function takes a source format and rate and a destination format
   450  *  This function takes a source format and rate and a destination format
   451  *  and rate, and initializes the \c cvt structure with information needed
   451  *  and rate, and initializes the \c cvt structure with information needed
   452  *  by SDL_ConvertAudio() to convert a buffer of audio data from one format
   452  *  by SDL_ConvertAudio() to convert a buffer of audio data from one format
   453  *  to the other. An unsupported format causes an error and -1 will be returned.
   453  *  to the other. An unsupported format causes an error and -1 will be returned.
   454  *  The audio subsystem must be initialized before calling this function.
       
   455  *
   454  *
   456  *  \return 0 if no conversion is needed, 1 if the audio filter is set up,
   455  *  \return 0 if no conversion is needed, 1 if the audio filter is set up,
   457  *  or -1 on error.
   456  *  or -1 on error.
   458  */
   457  */
   459 extern DECLSPEC int SDLCALL SDL_BuildAudioCVT(SDL_AudioCVT * cvt,
   458 extern DECLSPEC int SDLCALL SDL_BuildAudioCVT(SDL_AudioCVT * cvt,