MCPcopy Create free account
hub / github.com/LabSound/LabSound / abortStream

Method abortStream

src/backends/RtAudio/RtAudio.cpp:1770–1784  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1768}
1769
1770void 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

Callers 2

abortWasapiThreadMethod · 0.45
callbackEventMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected