QB64.org Forum
Active Forums => QB64 Discussion => Topic started by: PMACKAY on September 30, 2018, 06:29:12 am
-
I used a
DIM VFLIP&
_SNDOPEN ("FLIPV.OGG)
_SNDVOL VFLIP&,1
MY QB64 EXITS WITH "Press any key to continue" then Exits qb64
Is vflip& an internal var... (I had change to a different file .ogg to which it also does the same
changing vflip& to flipit& fixed the problem.. but not sure why it exits with vflip&
-
Well I see 2 things wrong with _SNDOPEN line.
-
my spelling... i only type this up quick.. the sound file loads fine in qb64 as long as i dont use vflip&
only difference was the name, I changed vflip& and works fine, but when put back just says "Press any key to continue" and stops
not sure / same when i put it back to vflip& : prints "press any key to continue"
DIM POWERUP&, GAMEMUSIC1&, FLIPIT&, PUSHSPACE&, INPLAC&, PLACED&, TITLE&
POWERUP& = _SNDOPEN(".\DATA\POWERUP.ogg"): PLACED& = _SNDOPEN(".\DATA\RIGHTSPOT.ogg"): INPLAC& = _SNDOPEN(".\DATA\INPLACE.ogg"): PUSHSPACE& = _SNDOPEN(".\DATA\PUSH.ogg"): GAMEMUSIC1& = _SNDOPEN(".\DATA\MUS1.ogg"): FLIPIT& = _SNDOPEN(".\DATA\FLIPV.ogg"): TITLE& = _SNDOPEN(".\DATA\TITLE.ogg")
_SNDVOL POWERUP&, 1: _SNDVOL PLACED&, 1: _SNDVOL INPLAC&, 1: _SNDVOL PUSHSPACE&, 1: _SNDVOL GAMEMUSIC1&, .5: _SNDVOL FLIPIT&, 1: _SNDVOL TITLE&, 1
-
Which ide version you use? Do not use last development version. And next - you muss not writing _SNDVOL, something&, 1 because to 1 (100 percent) is it set after opening.
-
I recompiled the qb64 and this fixed the error. not sure why it was doing this..
Maybe something messed up. but the code works fine after qb64 install done..