test/mpdtest.cc
/// tests a single track or directory
///
tests a single track or directory
tests a single track or directory
void test1( Mpd_client &client,  const std::string &resource )
{
    client.connect();
    client.stop();
    client.clear_queue();
    client.set_repeat_mode(false);
    client.enqueue( resource );
    client.check_status(Mpd_opt::Print);
    if (client.last_err() == Mpd_err::NoError) {
        client.play();
        sleep(10);
        client.check_status(Mpd_opt::Print);
        client.stop();
    }
    client.disconnect();
}
void test1 ( Mpd_client & client , const std :: string & resource ) { client . connect ( ) ; client . stop ( ) ; client . clear_queue ( ) ; client . set_repeat_mode ( false ) ; client . enqueue ( resource ) ; client . check_status ( Mpd_opt :: Print ) ; if ( client . last_err ( ) == Mpd_err :: NoError ) { client . play ( ) ; sleep ( 10 ) ; client . check_status ( Mpd_opt :: Print ) ; client . stop ( ) ; } client . disconnect ( ) ; }
tests a single track or directory
tests a single track or directory
// //