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 necessary to handle it this way because the callbackEvent() function must return before the ASIOStop() function will return.
| 3846 | // callbackEvent() function must return before the ASIOStop() |
| 3847 | // function will return. |
| 3848 | static unsigned __stdcall asioStopStream(void * ptr) |
| 3849 | { |
| 3850 | CallbackInfo * info = (CallbackInfo *) ptr; |
| 3851 | RtApiAsio * object = (RtApiAsio *) info->object; |
| 3852 | |
| 3853 | object->stopStream(); |
| 3854 | _endthreadex(0); |
| 3855 | return 0; |
| 3856 | } |
| 3857 | |
| 3858 | bool RtApiAsio ::callbackEvent(long bufferIndex) |
| 3859 | { |
nothing calls this directly
no test coverage detected