Skip to content

Commit

Permalink
Add comments to waveConfig and onAmplitudeListener properties in Wave…
Browse files Browse the repository at this point in the history
…Recorder class
  • Loading branch information
squti committed Nov 6, 2019
1 parent 0d6583a commit 628c089
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,14 @@ import java.nio.ByteOrder
* @property filePath the path of the file to be saved.
*/
class WaveRecorder(private var filePath: String) {
/**
* Configuration for recording audio file.
*/
var waveConfig: WaveConfig = WaveConfig()
/**
* Register a callback to be invoked in every recorded chunk of audio data
* to get max amplitude of that chunk.
*/
var onAmplitudeListener: ((Int) -> Unit)? = null
private var isRecording = false
private lateinit var audioRecorder: AudioRecord
Expand Down

0 comments on commit 628c089

Please sign in to comment.