test/tvlc.cc
/// Play a directory (all ogg), trapping all play time exceptions.
/// Return true if no issues were detected.
///
Play a directory (all ogg), trapping all play time exceptions.
Return true if no issues were detected.
Play a directory ( all ogg ) trapping all play time exceptions . Return true if no issues were detected .
bool do_directory( spPlayer vlcp, unsigned cycles )
{
    bool result = true;
    spSource spTestSrc { load_test_source(5,"testDirectory") };
    try {
        vlcp->play( spTestSrc );
        monitor_play( vlcp, spTestSrc, cycles );
    } catch( const std::exception &err ) {
        result = false;
    }
    vlcp->stop();
    return result;
}
bool do_directory ( spPlayer vlcp , unsigned cycles ) { bool result = true ; spSource spTestSrc { load_test_source ( 5 , " " ) } ; try { vlcp -> play ( spTestSrc ) ; monitor_play ( vlcp , spTestSrc , cycles ) ; } catch ( const std :: exception & err ) { result = false ; } vlcp -> stop ( ) ; return result ; }
Play a directory (all ogg), trapping all play time exceptions.
Play a directory ( all ogg ) trapping all play time exceptions .