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

Function jackStopStream

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

2790// callbackEvent() function must return before the jack_deactivate()
2791// function will return.
2792static void *jackStopStream(void *ptr)
2793{
2794 CallbackInfo *info = (CallbackInfo *)ptr;
2795 RtApiJack *object = (RtApiJack *)info->object;
2796
2797 object->stopStream();
2798 pthread_exit(NULL);
2799}
2800
2801bool RtApiJack ::callbackEvent(unsigned long nframes)
2802{

Callers

nothing calls this directly

Calls 1

stopStreamMethod · 0.45

Tested by

no test coverage detected