| 1768 | } |
| 1769 | |
| 1770 | void RtApiCore ::abortStream(void) |
| 1771 | { |
| 1772 | verifyStream(); |
| 1773 | if (stream_.state == STREAM_STOPPED) |
| 1774 | { |
| 1775 | errorText_ = "RtApiCore::abortStream(): the stream is already stopped!"; |
| 1776 | error(RtAudioError::WARNING); |
| 1777 | return; |
| 1778 | } |
| 1779 | |
| 1780 | CoreHandle * handle = (CoreHandle *) stream_.apiHandle; |
| 1781 | handle->drainCounter = 2; |
| 1782 | |
| 1783 | stopStream(); |
| 1784 | } |
| 1785 | |
| 1786 | // This function will be called by a spawned thread when the user |
| 1787 | // callback function signals that the stream should be stopped or |
no outgoing calls
no test coverage detected