63 static pthread_mutex_t
ready_mutex = PTHREAD_MUTEX_INITIALIZER;
64 static pthread_cond_t
ready_cond = PTHREAD_COND_INITIALIZER;
70 memset (& gain_from_playlist, 0,
sizeof gain_from_playlist);
84 gain_from_playlist.
album_gain = album_gain / (float) gain_unit;
85 gain_from_playlist.
track_gain = track_gain / (float) gain_unit;
90 gain_from_playlist.
album_peak = album_peak / (float) peak_unit;
91 gain_from_playlist.
track_peak = track_peak / (float) peak_unit;
148 static void update_cb (
void * hook_data,
void * user_data)
161 g_return_val_if_fail (
playing, 0);
307 char *
error = g_strdup_printf (
_(
"No decoder found for %s."),
406 static void set_params (InputPlayback * p,
int bitrate,
int samplerate,
419 static void set_tuple (InputPlayback * p, Tuple * tuple)
429 p->output->set_replaygain_info (& gain_from_playlist);
460 snprintf (s,
sizeof s,
get_bool (
NULL,
"leading_zero") ?
461 " (%02d:%02d)" :
" (%d:%02d)", len / 60, len % 60);
463 snprintf (s,
sizeof s,
" (%d:%02d:%02d)", len / 3600, (len / 60) %
478 g_return_val_if_fail (
playing, 0);
505 int h_vol[2] = {l, r};