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

Function DSVoiceStop

source/SoundCore.cpp:192–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190//-----------------------------------------------------------------------------
191
192bool DSVoiceStop(PVOICE Voice)
193{
194#ifdef NO_DIRECT_X
195 return false;
196#else
197 _ASSERT(Voice->lpDSBvoice);
198 HRESULT hr = Voice->lpDSBvoice->Stop();
199 if(FAILED(hr))
200 {
201 if(g_fh) fprintf(g_fh, "%s: DSStop failed (%08X)\n", Voice->name.c_str(), (uint32_t)hr);
202 return false;
203 }
204
205 Voice->bActive = false;
206 return true;
207#endif // NO_DIRECT_X
208}
209
210// Use this to Play()
211bool DSZeroVoiceBuffer(PVOICE Voice, uint32_t dwBufferSize)

Callers 6

StopMethod · 0.85
~VOICEMethod · 0.85
DSZeroVoiceBufferFunction · 0.85
Spkr_DSUninitFunction · 0.85
DestroyMethod · 0.85

Calls 1

StopMethod · 0.45

Tested by

no test coverage detected