MCPcopy Create free account
hub / github.com/AppleWin/AppleWin / DSReleaseSoundBuffer

Function DSReleaseSoundBuffer

source/SoundCore.cpp:171–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169}
170
171void DSReleaseSoundBuffer(VOICE* pVoice)
172{
173 if(pVoice->bIsSpeaker)
174 g_pSpeakerVoice = NULL;
175
176 for(UINT i=0; i<g_uNumVoices; i++)
177 {
178 if(g_pVoices[i] == pVoice)
179 {
180 g_pVoices[i] = g_pVoices[g_uNumVoices-1];
181 g_pVoices[g_uNumVoices-1] = NULL;
182 g_uNumVoices--;
183 break;
184 }
185 }
186
187 pVoice->lpDSBvoice.reset();
188}
189
190//-----------------------------------------------------------------------------
191

Callers 4

DSUninitMethod · 0.85
~VOICEMethod · 0.85
Spkr_DSUninitFunction · 0.85
DestroyMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected