-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathUtils.kt
More file actions
60 lines (50 loc) · 1.52 KB
/
Copy pathUtils.kt
File metadata and controls
60 lines (50 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
package com.audiowaveform
enum class DurationType { Current, Max }
object Constants {
const val path = "path"
const val LOG_TAG = "AudioWaveforms"
const val fileNameFormat = "dd-MM-yy-hh-mm-ss"
const val currentDuration = "currentDuration"
/** encoder */
const val acc = 1
const val aac_eld = 2
const val he_aac = 3
const val opus = 6
const val vorbis = 7
/** output format */
const val mpeg4 = 1
const val three_gpp = 2
const val ogg = 3
const val webm = 6
const val mpeg_2_ts = 7
const val aac_adts = 8
/** common */
const val amr_nb = 4
const val amr_wb = 5
const val progress = "progress"
const val volume = "volume"
const val durationType = "durationType"
const val playerKey = "playerKey"
const val finishMode = "finishMode"
const val finishType = "finishType"
const val noOfSamples = "noOfSamples"
const val onCurrentRecordingWaveformData = "onCurrentRecordingWaveformData"
const val onCurrentExtractedWaveformData = "onCurrentExtractedWaveformData"
const val waveformData = "waveformData"
const val updateFrequency = "updateFrequency"
const val currentDecibel = "currentDecibel"
const val bitRate = "bitRate"
const val sampleRate = "sampleRate"
const val speed = "speed"
const val onResetAllWaveforms = "onResetAllWaveforms"
}
enum class FinishMode(val value:Int) {
Loop(0),
Pause(1),
Stop(2)
}
enum class UpdateFrequency(val value:Long) {
High(50),
Medium(100),
Low(200),
}