rsked/playermgr.cc
/// Retrieve the annunciator (usually *ogg* player), which is used
/// exclusively for announcements. This player should be distinct from
/// any of the operational players, since they may be suspended during
/// announcements. If no usable annunciator is found, returns a ptr
/// to the Silent player.
///
Retrieve the annunciator (usually *ogg* player), which is used
exclusively for announcements. This player should be distinct from
any of the operational players, since they may be suspended during
announcements. If no usable annunciator is found, returns a ptr
to the Silent player.
Retrieve the annunciator ( usually * ogg * player ) which is used exclusively for announcements . This player should be distinct from any of the operational players since they may be suspended during announcements . If no usable annunciator is found returns a ptr to the Silent player .
spPlayer Player_manager::get_annunciator()
{
    spPlayer pp = m_players[ AnnName ];
    if (pp) {
        if (pp->is_usable()) {
            return pp;
        }
        LOG_ERROR(Lgr) << "Annunciator (" << pp->name() << ") is unusable";
    } else {
        LOG_ERROR(Lgr) << "Annunciator is unavailable.";
    }
    return m_players[ SilentName ];
}
spPlayer Player_manager :: get_annunciator ( ) { spPlayer pp = m_players [ AnnName ] ; if ( pp ) { if ( pp -> is_usable ( ) ) { return pp ; } LOG_ERROR ( Lgr ) << " " << pp -> name ( ) << " " ; } else { LOG_ERROR ( Lgr ) << " " ; } return m_players [ SilentName ] ; }
Retrieve the annunciator (usually *ogg* player), which is used
exclusively for announcements.
Retrieve the annunciator ( usually * ogg * player ) which is used exclusively for announcements .