Page 1 of 1

Playing .wav or .mp3 files from QB 4.5

Posted: Mon Jan 20, 2014 11:00 pm
by tradefutures
Does anyone have any code experience that can be called as a subroutine or function that will play a .wav or .mp3 file. I have searched high and low on the internet and have found unworkable snippets.

Thanks in advance

Mike

Re: Playing .wav or .mp3 files from QB 4.5

Posted: Tue Jan 21, 2014 8:37 am
by burger2227
QB64 can play WAV and MP3 sound files plus OGG and others using _SNDOPEN or _SNDPLAYFILE.

You can also control volume and tracks on some types of files. QB never really worked too well with sound. Just PLAY or SOUND worked on most machines. Mostly due to sound card incompatibilities.

QB64 allows you to compile old QB programs into EXE files that can run on newer Windows, Linux and Mac machines.

SCREEN 12 function for graphic display

Posted: Tue Feb 04, 2014 8:34 pm
by tradefutures
I only get about a quarter of the screen display on the monitor when using the SCREEN 12 in the QB64 compiled version versus the QB45 version. What do I need to do.

Re: Playing .wav or .mp3 files from QB 4.5

Posted: Tue Feb 04, 2014 11:03 pm
by burger2227
Just put _FULLSCREEN after the SCREEN mode line. Then it will be full screen.

You can peruse the QB64 WIKI to see a list of the new keywords here:

http://www.qb64.net/wiki/index.php/Keyw ... phabetical" target="_blank

Re: Playing .wav or .mp3 files from QB 4.5

Posted: Tue Feb 04, 2014 11:18 pm
by tradefutures
Thanks so much for the prompt and accurate reply..