sample/vs_android.cc
/**
 * Stops and closes the playback and recording streams.
 */
Stops and closes the playback and recording streams.
Stops and closes the playback and recording streams .
void VsAndroidCapture::closeAllStreams() {
  if (recordingStream_ != nullptr) {
    closeStream(recordingStream_);
    recordingStream_ = nullptr;
  }
}
void VsAndroidCapture :: closeAllStreams ( ) { if ( recordingStream_ != nullptr ) { closeStream ( recordingStream_ ) ; recordingStream_ = nullptr ; } }
Stops and closes the playback and recording streams.
Stops and closes the playback and recording streams .
/**
  * Note: The order of events is important here.
  * The playback stream must be closed before the recording stream. If the recording stream were to
  * be closed first the playback stream's callback may attempt to read from the recording stream
  * which would cause the app to crash since the recording stream would be null.
  */