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

Function coreStopStream

examples/TinyAudio/RtAudio.cpp:1707–1714  ·  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 better to handle it this way because the callbackEvent() function probably should return before the AudioDeviceStop() function is called.

Source from the content-addressed store, hash-verified

1705// callbackEvent() function probably should return before the AudioDeviceStop()
1706// function is called.
1707static void *coreStopStream(void *ptr)
1708{
1709 CallbackInfo *info = (CallbackInfo *)ptr;
1710 RtApiCore *object = (RtApiCore *)info->object;
1711
1712 object->stopStream();
1713 pthread_exit(NULL);
1714}
1715
1716bool RtApiCore ::callbackEvent(AudioDeviceID deviceId,
1717 const AudioBufferList *inBufferList,

Callers

nothing calls this directly

Calls 1

stopStreamMethod · 0.45

Tested by

no test coverage detected