generated from rnentjes/kotlin-server-web-empty
Update dependencies and fix MidiMessage data handling
Bumped library version to 0.3.1 and updated dependency `typed-byte-arrays` to 0.2.8 in `build.gradle.kts`. Adjusted `MidiMessage` constructor to avoid direct vararg usage by introducing an intermediate `ByteArray` for clarity and consistency.
This commit is contained in:
@@ -8,7 +8,7 @@ plugins {
|
||||
}
|
||||
|
||||
group = "nl.astraeus"
|
||||
version = "0.3.0"
|
||||
version = "0.3.1"
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
@@ -25,7 +25,7 @@ kotlin {
|
||||
sourceSets {
|
||||
val commonMain by getting {
|
||||
dependencies {
|
||||
api("nl.astraeus:typed-byte-arrays:0.2.6")
|
||||
api("nl.astraeus:typed-byte-arrays:0.2.8")
|
||||
}
|
||||
}
|
||||
val commonTest by getting {
|
||||
|
||||
@@ -42,7 +42,6 @@ class MidiDataMessage() : MidiMessage(
|
||||
|
||||
this.data = MutableByteArrayHandler(data)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class TimedMidiMessage() : MidiMessage(
|
||||
@@ -69,7 +68,8 @@ class TimedMidiMessage() : MidiMessage(
|
||||
vararg data: Byte
|
||||
): this() {
|
||||
this.timeToPlay = timeToPlay
|
||||
this.midi = SlicedByteArray(data)
|
||||
val ba: ByteArray = data
|
||||
this.midi = SlicedByteArray(ba)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user