MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / Music_PlayFile

Method Music_PlayFile

Source/PC/Sound_PC2.cpp:212–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210}
211
212void 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
228void cSound_PC2::Music_Stop() {
229 mPlayingTrack = -1;

Callers

nothing calls this directly

Calls 1

getDataFilePathMethod · 0.80

Tested by

no test coverage detected