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

Function alsaCallbackHandler

src/backends/RtAudio/RtAudio.cpp:9230–9250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9228}
9229
9230static void * alsaCallbackHandler(void * ptr)
9231{
9232 CallbackInfo * info = (CallbackInfo *) ptr;
9233 RtApiAlsa * object = (RtApiAlsa *) info->object;
9234 bool * isRunning = &info->isRunning;
9235
9236#ifdef SCHED_RR // Undefined with some OSes (e.g. NetBSD 1.6.x with GNU Pthread)
9237 if (info->doRealtime)
9238 {
9239 std::cerr << "RtAudio alsa: " << (sched_getscheduler(0) == SCHED_RR ? "" : "_NOT_ ") << "running realtime scheduling" << std::endl;
9240 }
9241#endif
9242
9243 while (*isRunning == true)
9244 {
9245 pthread_testcancel();
9246 object->callbackEvent();
9247 }
9248
9249 pthread_exit(NULL);
9250}
9251
9252//******************** End of __LINUX_ALSA__ *********************//
9253#endif

Callers

nothing calls this directly

Calls 1

callbackEventMethod · 0.80

Tested by

no test coverage detected