blob: aaa6db360811348171d67181faedef28a7d7dedc (
plain) (
tree)
|
|
package space.autistic.radio.fmsim
import space.autistic.radio.client.fmsim.FmFullConstants
import space.autistic.radio.client.fmsim.FmFullDemodulator
import space.autistic.radio.client.fmsim.FmFullModulator
import java.nio.FloatBuffer
import kotlin.test.Test
class TestAsserts {
@Test
fun testFmFullMod() {
// initialize and flush an FM modulator, in both mono and stereo
val fmFullModulator = FmFullModulator()
fmFullModulator.flush(1f, FmFullConstants.STEREO) {}
fmFullModulator.flush(1f, FmFullConstants.MONO) {}
}
@Test
fun testFmFullDemod() {
// initialize and flush an FM demodulator, in both mono and stereo
val fmFullDemodulator = FmFullDemodulator()
fmFullDemodulator.flush(FmFullConstants.STEREO) { _, _ -> }
fmFullDemodulator.flush(FmFullConstants.MONO) { _, _ -> }
}
}
|