mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-07-04 04:50:22 +00:00
Add tests of $MidiSoundFont file resolution
This commit is contained in:
parent
075d5bf157
commit
f931566a6b
3
tests/compile_tests/midi/include/soundfont.bi
Normal file
3
tests/compile_tests/midi/include/soundfont.bi
Normal file
|
@ -0,0 +1,3 @@
|
|||
$UNSTABLE:MIDI
|
||||
$MIDISOUNDFONT:"soundfont.sf3"
|
||||
|
BIN
tests/compile_tests/midi/include/soundfont.sf3
Normal file
BIN
tests/compile_tests/midi/include/soundfont.sf3
Normal file
Binary file not shown.
11
tests/compile_tests/midi/relative_to_include.bas
Normal file
11
tests/compile_tests/midi/relative_to_include.bas
Normal file
|
@ -0,0 +1,11 @@
|
|||
$CONSOLE:ONLY
|
||||
OPTION _EXPLICIT
|
||||
|
||||
'$Include:'include/soundfont.bi'
|
||||
|
||||
DIM h AS LONG: h = _SNDOPEN("2SKIPIX.mid")
|
||||
|
||||
PRINT "play time ="; _SNDLEN(h)
|
||||
|
||||
SYSTEM
|
||||
|
12
tests/compile_tests/midi/relative_to_source.bas
Normal file
12
tests/compile_tests/midi/relative_to_source.bas
Normal file
|
@ -0,0 +1,12 @@
|
|||
$CONSOLE:ONLY
|
||||
OPTION _EXPLICIT
|
||||
|
||||
$UNSTABLE:MIDI
|
||||
$MIDISOUNDFONT:"include/soundfont.sf3"
|
||||
|
||||
DIM h AS LONG: h = _SNDOPEN("2SKIPIX.mid")
|
||||
|
||||
PRINT "play time ="; _SNDLEN(h)
|
||||
|
||||
SYSTEM
|
||||
|
Loading…
Reference in a new issue