Hrm...
Ok, after looking into it after reading your post, it looks like the direct sound stuff doesn't have a *.qlb or a *.lib attached to it. Its designed that you include a *.bas file as a module in your program, which works pretty slick.
The problem is is that it uses the CALL ABSOLUTE...
Hi everyone,
I've been programming in QBasic for probably 20 years (as a hobby only), but this is the first time I've ever ventured into using graphics and sound libraries.
The two that seemed to work well for me are DirectQB and DS4QB (direct sound for QBasic).
The only problem I'm running...
Does anyone know how to PUT graphics outside of the VIEW SCREEN without getting an error? I'm trying to perfect my map for my RPG and it uses tiles. I want it to scroll smoothly (moving each tile 1 pixel instead of 1 tile every time the player moves), however, I can't figure out how to get the...
Thanks for the info. It looks as if I'll have to go about it a different way and rethink my methods. I'm putting all my tile information saved into DRAW commands and the long strings of information for each tile are stored into strings, which is chewing up the space pretty fast.
Hey everyone. The program I'm writing uses string space like crazy. It's a tile based RPG and the fastest way that I've found to draw the tiles is to put all the tiles of one area into a string array and then DRAW them. Each string for each tile can be 2000 - 5000 bytes in length and when...
Thanks for the responses. Both explained a lot as to how stack space works. It turns out that my error was caused by small bug that I fixed that caused a recursion, but now I have a temporary code that pops up how much memory I have left (numeric, string, and stack) as the program's running...
Hey everyone, I'm running into the OUT OF STACK SPACE error. I know what the error means and what the stack is, but I'm curious what I can do to clean up some space without using CLEAR (which is not an option by any means). I have a LOT of COMMON SHARED variables that pass between several...
Hey everyone, I'm working on some 3D graphics for a computer game I'm working on. Previously, I was using SCREEN 7 because of the pages feature, but after some optimization, I got my code to run fast enough to look good in screen 13 using the "WAIT &H3DA, 8" command for vertical retrace. My...
Got it to work in Windows 98. (I have both 98 and XP on my computer). It worked great, got a little dot to "fly" around the screen and shoot little bullets when I pressed the buttons. The analogue feature of the STICK command is pretty cool. Unfortunately, it doesn't work in XP and I'm not...
Sorry, forgot to get back to you. No, unfortunately, none of the code did anything. The STICK function as well as the other code didn't work with any of my joysticks in any port. Could it be Windows XP? If not, any other ideas? Thanks.
I'm using one on the game port, (it configured in the windows setup) and then I have two joysticks wired in through the printer port. None of them do anything. I'll give it another go in the morning, but I'm not sure what to try. Are you using Windows XP? Or should that not make any difference?
Does anyone have some simple code that can allow me to use a joystick to control my game in QBasic? I know that's rather vague, but the whole idea isn't very complex so it doesn't really require a lot of explaining. Thanks for any help.
Thanks for all the information on that. Definitely a bit too much work for a pure QB method of playing wave files. If I went that route, I don't know enough about how sound cards work to be able to do all the things you mentioned. I'm not really all about having pure QB code playing the wave...
I've been trying some things.
I'm not sure if it's the format that's incorrect (although, I'd still appreciate a working sample. Email address milesaway1980@juno.com).
But if I change the kHz to anything but 22050, the speed is wrong, if I change the bits to 16 instead of 8, it's really...
Thanks for the music player!
Although, I have some questions. Your specifications said:
8-bit
22k Hz
mono
But then you said it had to be of 176kbps. When you convert a wave to 8bit mono, 22kHz, it's only 21kbps. The only reason I'm questioning this is because when I play a song that I've...
I have no idea where to find any of those programs you mentioned. I did internet searches and came up with nothing.
As far as just searching for a qbasic wave file player on google, we're looking at about 5000 or more matches, and about 1% of them have anything of any interest, if that.
No...
For the last year or so, I've been working on an RPG of mine. I've put a lot of work into it, and the only thing I feel that keeps it from having that final "professional" touch is the fact that it's dead silent. I would love to use wave files for sound effects and for background...
Figured out the parameter type mismatch error.
It would still be:
SOMEPROCEDURE XYZ()
But in the sub, it would be
SUB SOMEPROCEDURE (XYZ() AS TEST)
That fixes that.
As for the common shared, it was the same deal, but I had to make sure to put the TYPE set before the COMMON SHARED...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.