0.95.7: surround sound always undecoded; the setting is removed (the box's DTS decoder is silent)
pauljd/davidson-ci: Davidson CI / quality (push) Failing after 2m6s
pauljd/davidson-ci: Davidson CI / ai-review (push) Failing after 1m23s

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-11-03 22:41:25 +00:00
co-authored by Claude Opus 5.5
parent 04be4328bc
commit a71086ad35
7 changed files with 15 additions and 69 deletions
@@ -1,18 +0,0 @@
package tv.orbit.classic
import android.media.AudioFormat
import org.junit.Assert.assertArrayEquals
import org.junit.Test
class AudioOutputTest {
private val tv = setOf(AudioFormat.ENCODING_PCM_16BIT, AudioFormat.ENCODING_AC3, AudioFormat.ENCODING_E_AC3, AudioFormat.ENCODING_DTS, AudioFormat.ENCODING_DOLBY_TRUEHD)
@Test fun dolbyAndDtsAreDecodedOnTheBoxSoOnlyPlainSoundAndTrueHdGoOutUndecoded() {
// The TV accepts DTS and Dolby, but only PCM, and TrueHD (which the box can't decode), are sent as they are.
assertArrayEquals(intArrayOf(AudioFormat.ENCODING_PCM_16BIT, AudioFormat.ENCODING_DOLBY_TRUEHD), plainSoundEncodings(tv::contains))
}
@Test fun aConnectionWithoutTrueHdGetsPlainSoundOnly() {
assertArrayEquals(intArrayOf(AudioFormat.ENCODING_PCM_16BIT), plainSoundEncodings(setOf(AudioFormat.ENCODING_PCM_16BIT)::contains))
}
}