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

Method MixerChannelFinished

Source/PC/Sound_PC.cpp:110–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108}
109
110void cSound_PC::MixerChannelFinished( int32 pChannel ) {
111
112 for (std::vector<sChunkPlaying>::iterator ChannelIT = mMixerChunks.begin(); ChannelIT != mMixerChunks.end(); ++ChannelIT) {
113
114 if (ChannelIT->mChannel == pChannel) {
115 Mix_FreeChunk( ChannelIT->mCurrentChunk );
116
117 mMixerChunks.erase( ChannelIT );
118 return;
119 }
120 }
121}
122
123void cSound_PC::Sound_Play( int16 pTileset, int16 pSoundEffect, int16 pVolume, int16 pIndex) {
124 sChunkPlaying Playing;

Callers 1

Mixer_ChannelFinishedFunction · 0.45

Calls 3

eraseMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected