stopRecording

abstract fun stopRecording()

Stops the recording and finishes the file. Does nothing when no recording runs. Closing the source does the same.

An exception means the file could not be finished. The recording has ended either way.