MCPcopy Create free account
hub / github.com/cjcliffe/CubicSDR / asioStopStream

Function asioStopStream

external/rtaudio/RtAudio.cpp:3520–3528  ·  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

3518// callbackEvent() function must return before the ASIOStop()
3519// function will return.
3520static unsigned __stdcall asioStopStream( void *ptr )
3521{
3522 CallbackInfo *info = (CallbackInfo *) ptr;
3523 RtApiAsio *object = (RtApiAsio *) info->object;
3524
3525 object->stopStream();
3526 _endthreadex( 0 );
3527 return 0;
3528}
3529
3530bool RtApiAsio :: callbackEvent( long bufferIndex )
3531{

Callers

nothing calls this directly

Calls 1

stopStreamMethod · 0.45

Tested by

no test coverage detected