rsked/source.cc
/// Name an encoding as a string, returning "unknown" if
/// for some reason the argument has not been registered here.
/// * Will not throw
///
Name an encoding as a string, returning "unknown" if
for some reason the argument has not been registered here.
Will not throw
Name an encoding as a string returning " unknown " if for some reason the argument has not been registered here . Will not throw
const char* encoding_name( const Encoding enc )
{
    switch(enc) {
    case Encoding::none: return "none";
    case Encoding::ogg: return "ogg";
    case Encoding::mp3: return "mp3";
    case Encoding::mp4: return "mp4";
    case Encoding::flac: return "flac";
    case Encoding::wfm: return "wfm";
    case Encoding::nfm: return "nfm";
    case Encoding::hd1fm: return "hd1fm";
    case Encoding::hd2fm: return "hd2fm";
    case Encoding::hd3fm: return "hd3fm";
    case Encoding::hd4fm: return "hd4fm";
    case Encoding::mixed: return "mixed";
    default:
        return "unknown";
    }
}
const char * encoding_name ( const Encoding enc ) { switch ( enc ) { case Encoding :: none : return " " ; case Encoding :: ogg : return " " ; case Encoding :: mp3 : return " " ; case Encoding :: mp4 : return " " ; case Encoding :: flac : return " " ; case Encoding :: wfm : return " " ; case Encoding :: nfm : return " " ; case Encoding :: hd1fm : return " " ; case Encoding :: hd2fm : return " " ; case Encoding :: hd3fm : return " " ; case Encoding :: hd4fm : return " " ; case Encoding :: mixed : return " " ; default : return " " ; } }
Name an encoding as a string, returning "unknown" if
for some reason the argument has not been registered here.
Name an encoding as a string returning " unknown " if for some reason the argument has not been registered here .