1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-05 14:40:23 +00:00
QB64-PE/tests/compile_tests/audio_handle_test/handle_test.bas
Matthew Kilgore c93da8db72 Add tests for SOUND and PLAY "MB"
These tests were intended to be added by #171, but the Linux build was
having problems. The issues with the build have since been resolved so
the tests are getting added back in.

Fixes: #173
2022-09-17 03:06:24 -04:00

23 lines
318 B
QBasic

Option _Explicit
$Console
$ScreenHide
_Dest _Console
' Try to open a non-existent file
Dim handle As Long
handle = _SndOpen("dummy.flac")
Print handle
If Not handle Then
Print "This failure was expected!"
End If
handle = _SndCopy(handle)
Print handle
If Not handle Then
Print "So was this!"
End If
System