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

Function pulseaudio_callback

examples/TinyAudio/RtAudio.cpp:8960–8973  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8958}
8959
8960static void *pulseaudio_callback(void *user)
8961{
8962 CallbackInfo *cbi = static_cast<CallbackInfo *>(user);
8963 RtApiPulse *context = static_cast<RtApiPulse *>(cbi->object);
8964 volatile bool *isRunning = &cbi->isRunning;
8965
8966 while (*isRunning)
8967 {
8968 pthread_testcancel();
8969 context->callbackEvent();
8970 }
8971
8972 pthread_exit(NULL);
8973}
8974
8975void RtApiPulse::closeStream(void)
8976{

Callers

nothing calls this directly

Calls 1

callbackEventMethod · 0.80

Tested by

no test coverage detected