File tree Expand file tree Collapse file tree 8 files changed +6
-20
lines changed
mingwX64Main/kotlin/pl/lemanski/pandamidi/util
nativeMain/kotlin/pl/lemanski/pandamidi Expand file tree Collapse file tree 8 files changed +6
-20
lines changed Original file line number Diff line number Diff line change @@ -3,14 +3,14 @@ plugins {
3
3
}
4
4
5
5
kotlin {
6
- mingwX64 ().apply {
6
+ linuxX64 ().apply {
7
7
binaries.executable {
8
8
entryPoint = " main"
9
9
}
10
10
}
11
11
12
12
sourceSets {
13
- mingwMain .dependencies {
13
+ nativeMain .dependencies {
14
14
implementation(libs.kotlinx.io)
15
15
// implementation(libs.pandamidi.core)
16
16
implementation(projects.core)
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import pl.lemanski.pandamidi.io.wav.toByteArray
13
13
import platform.posix.sleep
14
14
15
15
@OptIn(ExperimentalForeignApi ::class )
16
- fun main () {
16
+ fun main (args : Array < String > ) {
17
17
val gOff = MidiMessageNoteOff (
18
18
time = 10000 ,
19
19
channel = 6 ,
@@ -62,7 +62,7 @@ fun main() {
62
62
var bytes = ByteArray (0 )
63
63
val generator = getGenerator()
64
64
65
- val soundFontPath = Path (" D: \\ src \\ MidiWavConverter \\ Example \\ florestan-subset.sf2 " )
65
+ val soundFontPath = Path (args[ 0 ] )
66
66
67
67
generator.setSoundFont(soundFontPath.toString())
68
68
val midiBytes = generator.generate(c)
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ plugins {
6
6
7
7
kotlin {
8
8
mingwX64()
9
+ linuxX64()
9
10
10
11
@OptIn(ExperimentalKotlinGradlePluginApi ::class )
11
12
compilerOptions {
Load Diff This file was deleted.
File renamed without changes.
Original file line number Diff line number Diff line change @@ -3,10 +3,8 @@ package pl.lemanski.pandamidi.io.wav
3
3
import kotlinx.cinterop.ByteVar
4
4
import kotlinx.cinterop.ByteVarOf
5
5
import kotlinx.cinterop.CPointer
6
- import kotlinx.cinterop.CVariable
7
6
import kotlinx.cinterop.ExperimentalForeignApi
8
7
import kotlinx.cinterop.UIntVar
9
- import kotlinx.cinterop.UIntVarOf
10
8
import kotlinx.cinterop.UShortVar
11
9
import kotlinx.cinterop.addressOf
12
10
import kotlinx.cinterop.cstr
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ publishing {
57
57
}
58
58
59
59
configure<KonanPluginExtension > {
60
- kotlinTarget = KonanTarget .MINGW_X64
60
+ kotlinTarget = KonanTarget .LINUX_X64
61
61
sourceDir = " ${rootDir} /native/src"
62
62
headerDir = " ${rootDir} /native/include"
63
63
libName = " tsf"
You can’t perform that action at this time.
0 commit comments