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

Method MixerChannelFinished

Source/PC/Sound_PC2.cpp:183–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181}
182
183void cSound_PC2::MixerChannelFinished( int32 pChannel ) {
184
185 auto end = std::remove_if(mMixerChunks.begin(), mMixerChunks.end(), [pChannel](sChunkPlaying& a) {
186 return a.mChannel == pChannel;
187 });
188
189 mMixerChunks.erase(end, mMixerChunks.end());
190}
191
192void cSound_PC2::Sound_Play( int16 pTileset, int16 pSoundEffect, int16 pVolume, int16 pIndex) {
193 Mix_Chunk* chunk = 0;

Callers 1

Mixer_ChannelFinished2Function · 0.45

Calls 3

eraseMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected