Search found 416 matches

by Ophelius
Nov 26, 2010 6:12
Forum: Beginners
Topic: Allegro Blit problem
Replies: 3
Views: 751

You can't use Put on an Allegro bitmap.
by Ophelius
Nov 12, 2010 18:51
Forum: Windows
Topic: Windows PlaySound
Replies: 13
Views: 1969

Michael, thanks for that, you're a code wizard. Now if I need to have multiple sounds pre-loaded, I assume I can do this: #define WIN_INCLUDEALL #include "windows.bi" open "Sound1.wav" for binary as 1 dim as ubyte ptr SoundPtr_1 = allocate(lof(1)) print Get(#1...
by Ophelius
Nov 12, 2010 4:51
Forum: Windows
Topic: Windows PlaySound
Replies: 13
Views: 1969

Speaking of delays, I got to try it on Win Xp and occasionally the sound didn't play until a few seconds after it was supposed to. But most of the time it did play on queue. Anybody know why that may happen, and what the flags actually mean?
by Ophelius
Nov 12, 2010 4:41
Forum: Windows
Topic: Windows PlaySound
Replies: 13
Views: 1969

Cool, Thanks
by Ophelius
Nov 11, 2010 18:54
Forum: Windows
Topic: Windows PlaySound
Replies: 13
Views: 1969

Great, thanks. Though I have a simpler version: #include once "windows.bi" #include once "win\mmsystem.bi" 'Play Sound PlaySound("Sound.wav", NULL, SND_ASYNC Or SND_FILENAME) 'Stop Sound PlaySound(0, NULL, &h002000) Will this work with Windows XP(32/...
by Ophelius
Nov 11, 2010 18:21
Forum: Windows
Topic: Windows PlaySound
Replies: 13
Views: 1969

Windows PlaySound

Hi guys,
I'm using the PlaySound routine from the windows api to play wav files, but is there a way to stop the sound currently being played? There's only one sound playing at a time, so is there even a StopAllSounds function I have access to? Thanks
by Ophelius
Sep 19, 2010 3:50
Forum: General
Topic: Video
Replies: 7
Views: 910

unless, if I split the video and audio into separate files, and play them separately at the same time, would that work well you think, or would there be noticeable sync problems?

Edit: Vdecampo: The link you gave me doesn't work. I would like to try it out.
by Ophelius
Sep 18, 2010 17:23
Forum: General
Topic: Video
Replies: 7
Views: 910

That's the thing, I need audio too.
by Ophelius
Sep 18, 2010 4:33
Forum: General
Topic: Video
Replies: 7
Views: 910

I found this recent avi player:

http://freebasic.net/forum/viewtopic.php?t=15160&highlight=avi

but since I'm running Win 7 64-bit, it doesn't work. I would like to find one that is compatible with any windows version, at least so I can use it myself.
by Ophelius
Sep 18, 2010 3:24
Forum: General
Topic: Video
Replies: 7
Views: 910

Video

Is there an easy way to display a video file on an FB.gfx layer?(avi, mpeg, any format really). Any libraries out there that exists ready to use in FB? I browsed the forum already and no luck. Thanks for any info.
by Ophelius
Sep 05, 2010 18:26
Forum: Projects
Topic: Easy GL2D
Replies: 154
Views: 27036

Thanks for the update Rel. I tried the examples found with your tutorial, but the tute_2D_3D, tute_sprites and tute_metaballs crash when I open them. The others work fine. I'm running Windows 7 64-bit.
by Ophelius
Aug 28, 2010 23:57
Forum: Projects
Topic: Easy GL2D
Replies: 154
Views: 27036

Sweet, thanks!
by Ophelius
Aug 28, 2010 23:03
Forum: Projects
Topic: Easy GL2D
Replies: 154
Views: 27036

What's the best way to regulate frames? I've always used vsync, but like Lachie's situation, it might not work on all systems if it's not set up correctly in your video card settings. Also, if someone's monitor refresh rate is set other than what you've coded it to run at, it will run faster or slow...
by Ophelius
Aug 28, 2010 14:25
Forum: Projects
Topic: Easy GL2D
Replies: 154
Views: 27036

awesome, the tearing is gone. vsync works. Thanks Rel.
by Ophelius
Aug 22, 2010 15:26
Forum: Projects
Topic: Easy GL2D
Replies: 154
Views: 27036

-The bugs were because I wasn't including the .bas module. I assumed it was written in the .bi file already. -Under the screeninit function, I had to include 'OR 1' to the flag for screenres to make it fullscreen. I know it's easy to add manually, but it should be an option. -I tried asteroidz in fu...

Go to advanced search