1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-08-05 13:30:25 +00:00
QB64-PE/tests/compile_tests/audio_mem_test/sndopen_mem_test.bas
2022-12-31 04:22:42 +05:30

18 lines
289 B
QBasic

$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