Skip to content

Commit 5b5a49f

Browse files
committed
fix typo
1 parent b13e7fd commit 5b5a49f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/main/java/com/jbloit/androidlinkaudio/MainActivity.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class MainActivity : AppCompatActivity(), SeekBar.OnSeekBarChangeListener {
5757

5858
override fun onProgressChanged(seekBar: SeekBar?, progress: Int, fromUser: Boolean) {
5959
AudioEngine.setLatency(progress)
60-
text_latencyMs.text = "Output Latency : $progress ms \n Set to a little more than roundtrip latency"
60+
text_latencyMs.text = "Output Latency : $progress ms \n Set to a little more than half of round-trip latency"
6161
}
6262

6363

@@ -95,7 +95,7 @@ class MainActivity : AppCompatActivity(), SeekBar.OnSeekBarChangeListener {
9595
fun pollEngine(delta: Long){
9696

9797
val detectedLatencyMs = AudioEngine.getLatency()
98-
text_latencyDetection.text = "Detected round trip latency: $detectedLatencyMs ms"
98+
text_latencyDetection.text = "Detected round-trip latency: $detectedLatencyMs ms"
9999
}
100100
fun startAnimationLoop(){
101101
animationLoop.setTimeListener(TimeAnimator.TimeListener({ animation, totalTime, deltaTime -> pollEngine(deltaTime)}))

0 commit comments

Comments
 (0)