MCPcopy Create free account
hub / github.com/LabSound/LabSound / asioStopStream

Function asioStopStream

src/backends/RtAudio/RtAudio.cpp:3848–3856  ·  view source on GitHub ↗

This function will be called by a spawned thread when the user callback function signals that the stream should be stopped or aborted. It is necessary to handle it this way because the callbackEvent() function must return before the ASIOStop() function will return.

Source from the content-addressed store, hash-verified

3846// callbackEvent() function must return before the ASIOStop()
3847// function will return.
3848static unsigned __stdcall asioStopStream(void * ptr)
3849{
3850 CallbackInfo * info = (CallbackInfo *) ptr;
3851 RtApiAsio * object = (RtApiAsio *) info->object;
3852
3853 object->stopStream();
3854 _endthreadex(0);
3855 return 0;
3856}
3857
3858bool RtApiAsio ::callbackEvent(long bufferIndex)
3859{

Callers

nothing calls this directly

Calls 1

stopStreamMethod · 0.45

Tested by

no test coverage detected