diff --git a/tiny-engine/src/commonTest/kotlin/com/github/minigdx/tiny/platform/test/HeadlessPlatform.kt b/tiny-engine/src/commonTest/kotlin/com/github/minigdx/tiny/platform/test/HeadlessPlatform.kt index 65a368a7..a9fa333e 100644 --- a/tiny-engine/src/commonTest/kotlin/com/github/minigdx/tiny/platform/test/HeadlessPlatform.kt +++ b/tiny-engine/src/commonTest/kotlin/com/github/minigdx/tiny/platform/test/HeadlessPlatform.kt @@ -96,7 +96,7 @@ class HeadlessPlatform(override val gameOptions: GameOptions, val resources: Map } } - override fun playBuffer(buffer: FloatArray) = Unit + override fun playBuffer(buffer: FloatArray, numberOfSamples: Int) = Unit } } diff --git a/tiny-engine/src/commonTest/kotlin/com/github/minigdx/tiny/sound/SoundConverterTest.kt b/tiny-engine/src/commonTest/kotlin/com/github/minigdx/tiny/sound/SoundConverterTest.kt index 0977bb27..6859dbc4 100644 --- a/tiny-engine/src/commonTest/kotlin/com/github/minigdx/tiny/sound/SoundConverterTest.kt +++ b/tiny-engine/src/commonTest/kotlin/com/github/minigdx/tiny/sound/SoundConverterTest.kt @@ -29,7 +29,7 @@ class SoundConverterTest { val (lastBeat, result) = SoundConverter().prepareStrip(song) - assertEquals(1, lastBeat) + assertEquals(2, lastBeat) assertEquals(2, result.size) assertEquals(65, result[sine.name]!!.size) assertEquals(65, result[pulse.name]!!.size)