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.
| 1705 | // callbackEvent() function probably should return before the AudioDeviceStop() |
| 1706 | // function is called. |
| 1707 | static 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 | |
| 1716 | bool RtApiCore ::callbackEvent(AudioDeviceID deviceId, |
| 1717 | const AudioBufferList *inBufferList, |
nothing calls this directly
no test coverage detected