MCPcopy Create free account
hub / github.com/bulletphysics/bullet3 / asioStopStream

Function asioStopStream

examples/TinyAudio/RtAudio.cpp:3732–3740  ·  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

3730// callbackEvent() function must return before the ASIOStop()
3731// function will return.
3732static unsigned __stdcall asioStopStream(void *ptr)
3733{
3734 CallbackInfo *info = (CallbackInfo *)ptr;
3735 RtApiAsio *object = (RtApiAsio *)info->object;
3736
3737 object->stopStream();
3738 _endthreadex(0);
3739 return 0;
3740}
3741
3742bool RtApiAsio ::callbackEvent(long bufferIndex)
3743{

Callers

nothing calls this directly

Calls 1

stopStreamMethod · 0.45

Tested by

no test coverage detected