static void info_change (void) { gint bitrate = 0, samplerate = 0, channels = 0; if (aud_drct_get_ready ()) aud_drct_get_info (& bitrate, & samplerate, & channels); mainwin_set_song_info (bitrate, samplerate, channels); }
void playlist_set_info(char *title, int length, int rate, int freq, int nch) { PL_LOCK(); if (playlist_position) { g_free(playlist_position->title); playlist_position->title = g_strdup(title); playlist_position->length = length; } PL_UNLOCK(); mainwin_set_song_info(rate, freq, nch); }