Searched refs:SDL_MIX_MAXVOLUME (Results 1 – 3 of 3) sorted by relevance
85 #define ADJUST_VOLUME(s, v) (s = (s*v)/SDL_MIX_MAXVOLUME)86 #define ADJUST_VOLUME_U8(s, v) (s = (((s-128)*v)/SDL_MIX_MAXVOLUME)+128)307 const float fmaxvolume = 1.0f / ((float) SDL_MIX_MAXVOLUME); in SDL_MixAudioFormat()336 const float fmaxvolume = 1.0f / ((float) SDL_MIX_MAXVOLUME); in SDL_MixAudioFormat()
462 #define SDL_MIX_MAXVOLUME 128 macro
1513 …double volume_level = is->audio_volume ? (20 * log(is->audio_volume / (double)SDL_MIX_MAXVOLUME) /… in update_volume()1514 int new_volume = lrint(SDL_MIX_MAXVOLUME * pow(10.0, (volume_level + sign * step) / 20.0)); in update_volume()1515 …lip(is->audio_volume == new_volume ? (is->audio_volume + sign) : new_volume, 0, SDL_MIX_MAXVOLUME); in update_volume()2479 if (!is->muted && is->audio_buf && is->audio_volume == SDL_MIX_MAXVOLUME) in sdl_audio_callback()3122 startup_volume = av_clip(SDL_MIX_MAXVOLUME * startup_volume / 100, 0, SDL_MIX_MAXVOLUME); in stream_open()