|
a/src/mpdcli.cxx |
|
b/src/mpdcli.cxx |
|
... |
|
... |
324 |
upsong.genre.clear();
|
324 |
upsong.genre.clear();
|
325 |
|
325 |
|
326 |
upsong.duration_secs = mpd_song_get_duration(song);
|
326 |
upsong.duration_secs = mpd_song_get_duration(song);
|
327 |
upsong.mpdid = mpd_song_get_id(song);
|
327 |
upsong.mpdid = mpd_song_get_id(song);
|
328 |
|
328 |
|
329 |
LOGDEB1("MPDCli::mapSong: got mpdid " << upsong.mpdid << " " <<
|
329 |
// LOGDEB1("MPDCli::mapSong: got mpdid " << upsong.mpdid << " " <<
|
330 |
upsong.dump() << endl);
|
330 |
// upsong.dump() << endl);
|
331 |
return upsong;
|
331 |
return upsong;
|
332 |
}
|
332 |
}
|
333 |
|
333 |
|
334 |
bool MPDCli::setVolume(int volume, bool isMute)
|
334 |
bool MPDCli::setVolume(int volume, bool isMute)
|
335 |
{
|
335 |
{
|
|
... |
|
... |
390 |
return true;
|
390 |
return true;
|
391 |
}
|
391 |
}
|
392 |
|
392 |
|
393 |
int MPDCli::getVolume()
|
393 |
int MPDCli::getVolume()
|
394 |
{
|
394 |
{
|
395 |
LOGDEB1("MPDCli::getVolume" << endl);
|
395 |
//LOGDEB1("MPDCli::getVolume" << endl);
|
396 |
return m_stat.volume >= 0 ? m_stat.volume : m_cachedvolume;
|
396 |
return m_stat.volume >= 0 ? m_stat.volume : m_cachedvolume;
|
397 |
}
|
397 |
}
|
398 |
|
398 |
|
399 |
bool MPDCli::togglePause()
|
399 |
bool MPDCli::togglePause()
|
400 |
{
|
400 |
{
|