Dav's Qbasic Site.

Dav's mug.

 

Main

News

Forum

Qbasic/QB45

QB64

QBKB

Projects

More...

 

Forum


Back to Messages

RogSyk (Wed Jan 25 2017 at 9:38 pm)
QB64 Ver 1.1 sound Problem

I have been using QB64 ver 1.0, I thought I'd try to move up to ver 1.1.  Well I ran into a bit of a snag. When playing a sound file(171 seconds long)The wav file will play, but, stops before the end of the file. It works great when I use the QB ver 1.0 Does the newer version of QB64 have a sound bug? Here's the program I used.
DIM PlayThis AS LONG
vol = .8
music$ = "MySong.wav"
COLOR 3: LOCATE 8, 8:
PRINT "CURRENTLY PLAYING ";: COLOR 2: PRINT music$
SOUND 0, 0
PlayThis = _SNDOPEN(music$, "sync,vol"):
IF PlayThis THEN _SNDPLAY PlayThis:
100 IF _SNDPLAYING(PlayThis) THEN GOTO 100
_SNDCLOSE PlayThis
PRINT " Sound Complete"
PRINT "done"


Reply to this Message


Name
Subject
Message

No HTML code will be allowed in the message.
All SPAM and inappropriate material will be deleted.

Powered by FlatForum 1.4

© Copyright 2011 by Dav - All Rights Reserved.
Hosted by www.qbasicnews.com.
Users now online: 1
Hits: 15914