|
a/src/mpdcli.cxx |
|
b/src/mpdcli.cxx |
|
... |
|
... |
285 |
// can.
|
285 |
// can.
|
286 |
m_stat.currentsong.samplefreq = m_stat.sample_rate;
|
286 |
m_stat.currentsong.samplefreq = m_stat.sample_rate;
|
287 |
m_stat.currentsong.bitrate = m_stat.kbrate * 1000;
|
287 |
m_stat.currentsong.bitrate = m_stat.kbrate * 1000;
|
288 |
m_stat.currentsong.channels = m_stat.channels;
|
288 |
m_stat.currentsong.channels = m_stat.channels;
|
289 |
|
289 |
|
290 |
LOGDEB("MPD AUDIO FORMAT: " << int(maf->sample_rate) << " samps/S " <<
|
290 |
LOGDEB1("MPD AUDIO FORMAT: " << int(maf->sample_rate) << " samps/S " <<
|
291 |
m_stat.kbrate << " kbits/S " << int(maf->bits) << " bits " <<
|
291 |
m_stat.kbrate << " kbits/S " << int(maf->bits) << " bits " <<
|
292 |
int(maf->channels) << " channels\n");
|
292 |
int(maf->channels) << " channels\n");
|
293 |
} else {
|
293 |
} else {
|
294 |
m_stat.bitdepth = m_stat.channels = m_stat.sample_rate = 0;
|
294 |
m_stat.bitdepth = m_stat.channels = m_stat.sample_rate = 0;
|
295 |
}
|
295 |
}
|
296 |
|
296 |
|
297 |
const char *err = mpd_status_get_error(mpds);
|
297 |
const char *err = mpd_status_get_error(mpds);
|