bool SoundManager::StopStream( const std::string& resource_path, double fadeout_time ) { map<string,SoundSource *>::iterator itr = m_mapNameToSoundSource.find( resource_path ); if( itr == m_mapNameToSoundSource.end() ) { return false; } SoundSource *pSource = itr->second; if( pSource ) { pSource->Stop(); GetSoundManager().ReleaseSoundSource( pSource ); } m_mapNameToSoundSource.erase( itr ); return true; }