MCPcopy Create free account
hub / github.com/Aloshi/EmulationStation / stop

Method stop

src/AudioManager.cpp:144–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144void AudioManager::stop()
145{
146 //stop playing all Sounds
147 for(unsigned int i = 0; i < sSoundVector.size(); i++)
148 {
149 if(sSoundVector.at(i)->isPlaying())
150 {
151 sSoundVector[i]->stop();
152 }
153 }
154 //pause audio
155 SDL_PauseAudio(1);
156}

Callers 2

initMethod · 0.45
unregisterSoundMethod · 0.45

Calls 2

isPlayingMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected