// 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; }
SString CClientSound::GetMetaTags( const SString& strFormat ) { SString strMetaTags = ""; strMetaTags = TAGS_Read( m_pSound, strFormat.c_str() ); return strMetaTags; }