예제 #1
0
// Streams only
SString CBassAudio::GetMetaTags( const SString& strFormat )
{
    SString strMetaTags;
    if ( strFormat == "streamName" )
        strMetaTags = m_strStreamName;
    else
    if ( strFormat == "streamTitle" )
        strMetaTags = m_strStreamTitle;
    else
    if ( m_pSound )
    {
        if ( strFormat != "" )
        {
            const char* szTags = TAGS_Read( m_pSound, strFormat );
            if ( szTags ) 
            {
                strMetaTags = szTags;
                if ( strMetaTags == "" )
                {
                    // Try using data from from shoutcast meta
                    SString* pstrResult = MapFind ( m_ConvertedTagMap, strFormat );
                    if ( pstrResult )
                        strMetaTags = *pstrResult;
                }
            }
        }

    }
    return strMetaTags;
}
예제 #2
0
SString CClientSound::GetMetaTags( const SString& strFormat )
{
    SString strMetaTags = "";
    strMetaTags = TAGS_Read( m_pSound, strFormat.c_str() );
    return strMetaTags;
}