| 141 | } |
| 142 | |
| 143 | void cSound_PC::Music_PlayFile( const std::string& pFilename ) { |
| 144 | |
| 145 | if (mSound == false) |
| 146 | return; |
| 147 | |
| 148 | Mix_FreeMusic( mMusicPlaying ); |
| 149 | SDL_Delay( 100 ); |
| 150 | mMusicPlaying = 0; |
| 151 | |
| 152 | if(g_ResourceMan->FileExists(pFilename.c_str())) |
| 153 | mMusicPlaying = Mix_LoadMUS(pFilename.c_str()); |
| 154 | |
| 155 | Mix_VolumeMusic( 0x70 ); |
| 156 | |
| 157 | if (mMusicPlaying) |
| 158 | Mix_PlayMusic( mMusicPlaying, -1 ); |
| 159 | } |
| 160 | |
| 161 | void cSound_PC::Music_Stop() { |
| 162 | mPlayingTrack = -1; |
nothing calls this directly
no test coverage detected