0.95.7: surround sound always undecoded; the setting is removed (the box's DTS decoder is silent)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -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))
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user