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

Function jackShutdown

src/backends/RtAudio/RtAudio.cpp:2399–2415  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2397 pthread_exit(NULL);
2398}
2399static void jackShutdown(void * infoPointer)
2400{
2401 CallbackInfo * info = (CallbackInfo *) infoPointer;
2402 RtApiJack * object = (RtApiJack *) info->object;
2403
2404 // Check current stream state. If stopped, then we'll assume this
2405 // was called as a result of a call to RtApiJack::stopStream (the
2406 // deactivation of a client handle causes this function to be called).
2407 // If not, we'll assume the Jack server is shutting down or some
2408 // other problem occurred and we should close the stream.
2409 if (object->isStreamRunning() == false) return;
2410
2411 ThreadHandle threadId;
2412 pthread_create(&threadId, NULL, jackCloseStream, info);
2413 std::cerr << "\nRtApiJack: the Jack server is shutting down this client ... stream stopped and closed!!\n"
2414 << std::endl;
2415}
2416
2417static int jackXrun(void * infoPointer)
2418{

Callers

nothing calls this directly

Calls 1

isStreamRunningMethod · 0.80

Tested by

no test coverage detected