Skip to content

Commit 88558b5

Browse files
committed
Made mikrosoundfont testable
1 parent 526bb7f commit 88558b5

File tree

4 files changed

+7
-26
lines changed

4 files changed

+7
-26
lines changed

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[versions]
2-
lib = "0.1.8"
2+
lib = "0.1.9"
33

44
agp = "8.7.3"
55
kotlin = "2.1.0"

soundfont/src/androidMain/kotlin/io/github/lemcoder/mikrosoundfont/MikroSoundFont.android.kt

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
package io.github.lemcoder.mikrosoundfont
22

3-
expect object MikroSoundFont {
4-
fun load(path: String): SoundFont
3+
import io.github.lemcoder.mikrosoundfont.internal.getSoundFontDelegate
54

5+
interface SoundFontLoader {
66
fun load(memory: ByteArray): SoundFont
77
}
8+
9+
object MikroSoundFont : SoundFontLoader {
10+
override fun load(memory: ByteArray): SoundFont = getSoundFontDelegate(memory)
11+
}

soundfont/src/nativeMain/kotlin/io/github/lemcoder/mikrosoundfont/MirkoSoundFont.native.kt

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)