Search found 124 matches

by DamageX
Jan 07, 2018 1:55
Forum: DOS
Topic: Graphics problem.
Replies: 6
Views: 1325

Re: Graphics problem.

Yes, it works in FB 1.05.0 DOS also...
by DamageX
Jan 06, 2018 9:39
Forum: DOS
Topic: Graphics problem.
Replies: 6
Views: 1325

Re: Graphics problem.

Not sure if this is an issue with FB or your machine. FYI, Screen 2 works fine for me with the older FB 0.23
by DamageX
Jan 06, 2018 8:58
Forum: Community Discussion
Topic: Audio library for FreeBasic - Features
Replies: 77
Views: 17578

Re: Audio library for FreeBasic - Features

I think a sound library should have both low and high level features Low level: Open a channel to sound output (setting frequency, mono or stereo mode, and bit depth) Send raw PCM data to such channel Open a MIDI channel Send raw MIDI messages I agree that these are fundamental capabilities which s...
by DamageX
Dec 07, 2017 9:20
Forum: Community Discussion
Topic: FreeBASIC Discussion December 2017
Replies: 42
Views: 6015

Re: FreeBASIC Discussion December 2017

strengths:
-maintaining QBASIC compatibility while simultaneously allowing access to modern hardware/OS
-minimal system requirements/dependencies
-inline assembly
-very good documentation
-free license
-multiplatform
by DamageX
Dec 07, 2017 8:21
Forum: Windows
Topic: Does anyone know what algo XP -> full screen DOS?
Replies: 95
Views: 7425

Re: Does anyone know what algo XP -> full screen DOS?

Windows XP doesn't use any algorithm if I remember correctly. When viewing a full-screen DOS window, it actually uses the VGA's actual mode. Yes, exactly. Running a DOS program full-screen under Windows gets you the same thing as running it in DOS. However there is another important thing to note. ...
by DamageX
Nov 21, 2017 8:41
Forum: General
Topic: Signed/unsigned equality. Bug?
Replies: 17
Views: 1391

Re: Signed/unsigned equality. Bug?

Dim a As Short, b As UShort a = -1234 'Change this to any negative number b = a Print b Print Hex(a); " = "; Hex(b) If a = b Then Print "equal" Else Print "non-equal" GetKey I'm trying to replicate it now and realised the code as I posted it is giving non-equal on both...
by DamageX
Nov 14, 2017 6:28
Forum: General
Topic: For the graphics gurus, perhaps <smile>
Replies: 9
Views: 564

Re: For the graphics gurus, perhaps <smile>

Another approach is to use a different probability density function. We could use the normal distribution where a change in direction by, say, 90° would be highly unlikely, 80° more likely, 70° more likely still and so on on until we get to the greatest likely change in the range [-10°, 10°]. What ...
by DamageX
Nov 13, 2017 0:34
Forum: General
Topic: passing strings to external functions
Replies: 23
Views: 1256

Re: passing strings to external functions

At the very least he could have provided the C function prototype he's trying to pass a string to I was trying to call wsock32.dll gethostbyname. From Windows Sockets Network Programming : struct hostent FAR * PASCAL FAR gethostbyname /* Null on failure */ (char FAR *name); /* pointer to name of th...
by DamageX
Nov 12, 2017 10:26
Forum: General
Topic: passing strings to external functions
Replies: 23
Views: 1256

Re: passing strings to external functions

Well, I posted generic example code to get right to the point. But after thinking about it I realized what I should have done. I compiled all three and compared assembly listings. So now I can answer my own question. The first and second pieces of code generate exactly the same output. Third one is ...
by DamageX
Nov 12, 2017 9:27
Forum: General
Topic: passing strings to external functions
Replies: 23
Views: 1256

passing strings to external functions

what is the difference between these three code snippets? I have found that only one of them works, but I don't know why. declare function SomeThing (byval as any ptr) as integer dim stuff as string stuff="cheerios" ? SomeThing(@stuff) declare function SomeThing (byref as string) as intege...
by DamageX
Oct 26, 2017 4:56
Forum: Game Dev
Topic: Ways in which I can embed a video player into GFX window?
Replies: 13
Views: 2304

Re: Ways in which I can embed a video player into GFX window?

Vorbis shouldn't have any patents. I think that was pretty much the whole point of it. It can also be used with AVI (Vorbis ACM codec). I'm not sure why you think AVI would take more space, it depends 98% on which codecs are used, not so much on the container.
by DamageX
Oct 23, 2017 8:32
Forum: Tips and Tricks
Topic: convert WAV files with ACM (win32)
Replies: 0
Views: 701

convert WAV files with ACM (win32)

Here is a program that converts a WAV file containing uncompressed PCM to one containing MP3 audio. This requires the LAME MP3 ACM codec being installed on your system. Specify the input file and output file names on the command line. ' convert PCM to LAME 160Kbps, CBR, 44KHz stereo ' compiled with ...
by DamageX
Oct 23, 2017 7:49
Forum: Game Dev
Topic: Ways in which I can embed a video player into GFX window?
Replies: 13
Views: 2304

Re: Ways in which I can embed a video player into GFX window?

Bink might be an option. It's really easy to use but you would have to use the .bik format for your cutscenes. Edit: Come to think of it. I believe you have to purchase a license if you want to distribute your game. So this may not be an option for you. Now that you mention it, wouldn't there be si...
by DamageX
Sep 30, 2017 9:17
Forum: General
Topic: Find the best 8 bit palette for an RGB image
Replies: 67
Views: 4077

Re: Find the best 8 bit palette for an RGB image

@D.J.Peters To use floyd-steinberg dithering you need a modifiable copy of the bitmap (or at least two raster lines at a time I guess). Could your function to convert to CGA colors pass a pointer to a bitmap instead of a single pixel? My program can already convert to CGA/EGA palette... http://www.h...
by DamageX
Sep 29, 2017 9:58
Forum: General
Topic: Find the best 8 bit palette for an RGB image
Replies: 67
Views: 4077

Re: Find the best 8 bit palette for an RGB image

actually I just noticed that irfanview also has a checkbox for Floyd-Steinberg which works well on my test image...

Go to advanced search