src/audio.c
int8_t musicFadeIn(Music *music, int8_t loops, uint16_t ms)
{
    if (-1 == Mix_FadeInMusic(music->music, loops, ms))
    {
        fprintf(stderr, "%s\n", Mix_GetError());
        return -1;
    }

    return 0;
}
/**
 * @brief   Same as musicPlay but with fade-in effect.
 * @param   music the music structure that should be played.
 * @param   loops number of times to play through the music, -1 plays the music
 *                forever.
 * @param   ms    time to fade-in music.
 * @return  0 on success, -1 on error.
 * @ingroup Audio
 */
@brief   Same as musicPlay but with fade-in effect.
@param   music the music structure that should be played.
@param   loops number of times to play through the music, -1 plays the music
forever.
@param   ms    time to fade-in music.
@return  0 on success, -1 on error.
@ingroup Audio
@brief Same as musicPlay but with fade - in effect . @param music the music structure that should be played . @param loops number of times to play through the music - 1 plays the music forever . @param ms time to fade - in music . @return 0 on success - 1 on error . @ingroup Audio
int8_t musicFadeIn(Music *music, int8_t loops, uint16_t ms)
{
    if (-1 == Mix_FadeInMusic(music->music, loops, ms))
    {
        fprintf(stderr, "%s\n", Mix_GetError());
        return -1;
    }
    return 0;
}
int8_t musicFadeIn ( Music * music , int8_t loops , uint16_t ms ) { if ( -1 == Mix_FadeInMusic ( music -> music , loops , ms ) ) { fprintf ( stderr , " \n " , Mix_GetError ( ) ) ; return -1 ; } return 0 ; }
@brief   Same as musicPlay but with fade-in effect.
@brief Same as musicPlay but with fade - in effect .