mirror of
https://github.com/Myzel394/Alibi.git
synced 2025-06-18 23:05:26 +02:00
fix: Fallback to 0 amplitude on RuntimeException
This commit is contained in:
parent
191986a99f
commit
fc47baf56e
@ -78,6 +78,8 @@ class AudioRecorderService: IntervalRecorderService() {
|
||||
recorder!!.maxAmplitude
|
||||
} catch (error: IllegalStateException) {
|
||||
0
|
||||
} catch (error: RuntimeException) {
|
||||
0
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user