| 210 | } |
| 211 | |
| 212 | void cSound_PC2::Music_PlayFile( const char* pFilename ) { |
| 213 | |
| 214 | if (mSound == false) |
| 215 | return; |
| 216 | |
| 217 | std::string Filename = g_Fodder->mVersionCurrent->getDataFilePath(std::string(pFilename) + ".AMF"); |
| 218 | Mix_FreeMusic(mMusicPlaying); |
| 219 | SDL_Delay(100); |
| 220 | |
| 221 | mMusicPlaying = Mix_LoadMUS(Filename.c_str()); |
| 222 | Mix_VolumeMusic(0x70); |
| 223 | |
| 224 | if (mMusicPlaying) |
| 225 | Mix_PlayMusic(mMusicPlaying, -1); |
| 226 | } |
| 227 | |
| 228 | void cSound_PC2::Music_Stop() { |
| 229 | mPlayingTrack = -1; |
nothing calls this directly
no test coverage detected