Keep the host audio threshold API compatible with Android signatures
This commit is contained in:
1 parent
68651795bf
commit
e072624c8d
1 file changed
+3
-3
@@ -41,12 +41,12 @@ class AudioTrack {
|
||||
var playState = 0
|
||||
private set
|
||||
val bufferSizeInFrames = 960
|
||||
var startThresholdInFrames = 1
|
||||
private set
|
||||
private var threshold = 1
|
||||
val startThresholdInFrames get() = threshold
|
||||
var playbackHeadPosition = 0
|
||||
private set
|
||||
val underrunCount = 0
|
||||
fun setStartThresholdInFrames(value: Int) { check("threshold" !in failures); startThresholdInFrames = value }
|
||||
fun setStartThresholdInFrames(value: Int) { check("threshold" !in failures); threshold = value }
|
||||
fun write(pcm: ShortArray, offset: Int, count: Int, mode: Int): Int {
|
||||
check(!released); check("write" !in failures); playbackHeadPosition += count / 2; return count
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user