rsked/nrsc5player.cc
/// Init: extract binary path for nrsc5 player
///
extract binary path for nrsc5 player
extract binary path for nrsc5 player
void Nrsc5_player::initialize( Config& cfg, bool testp )
{
    namespace fs = boost::filesystem;
    const char* myName = m_name.c_str();
    m_test_mode = testp;
    cfg.get_bool( myName, "enabled" ,m_enabled);
    if (not m_enabled) {
        LOG_INFO(Lgr) << "Nrsc5_player '" << m_name << "' (disabled)";
        return;
    }
    fs::path binpath { DefaultBinPath };
    cfg.get_pathname( myName, "nrsc5_bin_path",
                      FileCond::MustExist, binpath);
    m_cm->set_binary( binpath );
    m_device_index = 0;
    cfg.get_unsigned( myName, "device_index", m_device_index );
     TODO: probe this device e.g. via rtl_test
    LOG_INFO(Lgr) << "Nrsc5_player named '" << m_name << "' initialized";
}
void Nrsc5_player :: initialize ( Config & cfg , bool testp ) { namespace fs = boost :: filesystem ; const char * myName = m_name . c_str ( ) ; m_test_mode = testp ; cfg . get_bool ( myName , " " , m_enabled ) ; if ( not m_enabled ) { LOG_INFO ( Lgr ) << " " << m_name << " " ; return ; } fs :: path binpath { DefaultBinPath } ; cfg . get_pathname ( myName , " " , FileCond :: MustExist , binpath ) ; m_cm -> set_binary ( binpath ) ; m_device_index = 0 ; cfg . get_unsigned ( myName , " " , m_device_index ) ; LOG_INFO ( Lgr ) << " " << m_name << " " ; }
Init: extract binary path for nrsc5 player
Init : extract binary path for nrsc5 player
// // TODO: probe this device e.g. via rtl_test