1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-09-09 16:20:18 +00:00
QB64-PE/tests/compile_tests/audio_mem_test/sndopen_mem_test.bas

18 lines
289 B
QBasic
Raw Normal View History

2022-12-30 22:52:42 +00:00
$Console:Only
Option _Explicit
Option _ExplicitArray
Dim f As Long: f = FreeFile
Open "test.mp3" For Binary Access Read As f
Dim buffer As String: buffer = Input$(LOF(f), f)
Print "Size ="; Len(buffer)
Close f
Dim h As Long: h = _SndOpen(buffer, "memory")
Print "Handle ="; h
System