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

Function jackStopStream

src/backends/RtAudio/RtAudio.cpp:2898–2905  ·  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 jack_deactivate() function will return.

Source from the content-addressed store, hash-verified

2896// callbackEvent() function must return before the jack_deactivate()
2897// function will return.
2898static void * jackStopStream(void * ptr)
2899{
2900 CallbackInfo * info = (CallbackInfo *) ptr;
2901 RtApiJack * object = (RtApiJack *) info->object;
2902
2903 object->stopStream();
2904 pthread_exit(NULL);
2905}
2906
2907bool RtApiJack ::callbackEvent(unsigned long nframes)
2908{

Callers

nothing calls this directly

Calls 1

stopStreamMethod · 0.45

Tested by

no test coverage detected