Search found 1533 matches

by angros47
Sep 30, 2019 16:45
Forum: Libraries
Topic: Modern GL 2D game lib needed
Replies: 13
Views: 1095

Re: Modern GL 2D game lib needed

Thanks for your reply. planned to be removed in the last versions of OpenGL So, any programs that use it for rendering will soon no longer run on the latest GPUs? I have no way to know it, although there are so many programs still using the FFP that I doubt they will want to break retro-compatibili...
by angros47
Sep 28, 2019 21:12
Forum: Libraries
Topic: Modern GL 2D game lib needed
Replies: 13
Views: 1095

Re: Modern GL 2D game lib needed

OpenGL in windows is often emulated by DirectX (that's why only the older, fixed function based version is implemented). Fixed function features have been removed in GLES 2.0, and are planned to be removed in the last versions of OpenGL, as well. Also, some people claim Vulkan to be the successor of...
by angros47
Sep 25, 2019 23:21
Forum: Tips and Tricks
Topic: MultiPut V2.0 :-)
Replies: 24
Views: 4421

Re: MultiPut V2.0 :-)

Personally I think MultiPut should be added to the GFX library. Along with some collision detection routine, perhaps, too
by angros47
Sep 12, 2019 13:18
Forum: DOS
Topic: Raster bar?
Replies: 1
Views: 7896

Re: Raster bar?

Ok, I tried it on a machine with Windows XP: it works under the dos prompt (as long as it's used in full screen mode) #include "dos\dos.bi" do do while(inp(&h3da) and 8):loop do until(inp(&h3da) and 8):loop for i as integer=1 to (150+150*sin(timer)) do while(inp(&h3da) and 1):l...
by angros47
Sep 05, 2019 17:05
Forum: Community Discussion
Topic: Audio library for FreeBasic - Features
Replies: 77
Views: 13518

Re: Audio library for FreeBasic - Features

I re-uploaded it again, fixing a small bug in the file SoundFunction.bas: when a sound buffer was created using a sampling rate different from the default one, the default sample rate was used to render a sound inside that buffer, instead of the buffer rate. It is fixed now
by angros47
Sep 05, 2019 0:05
Forum: Community Discussion
Topic: BSAVE/BLOAD fail to work outside of graphic modes
Replies: 1
Views: 508

BSAVE/BLOAD fail to work outside of graphic modes

Originally, BSAVE and BLOAD were used to save/load arbitrary memory areas (strings, sounds, graphics, assembly subroutines). In FreeBasic, they are usually used to manage .BMP images, but they are also able to save arbitrary memory data (and BLOAD can also load memory data in the format used by QBAS...
by angros47
Sep 03, 2019 22:25
Forum: Tips and Tricks
Topic: Loader for QBASIC sprites in 16 color modes
Replies: 0
Views: 1451

Loader for QBASIC sprites in 16 color modes

I looked in the forum, and I can't believe that I couldn't find a single way to load a sprite saved from a QBASIC program (using GET and then BSAVE). FreeBasic can read .BMP files, it can also read QBASIC files, but not pictures saved in QBASIC. Actually, QBASIC could store a sprite in different (an...
by angros47
Sep 02, 2019 11:50
Forum: Community Discussion
Topic: Audio library for FreeBasic - Features
Replies: 77
Views: 13518

Re: Audio library for FreeBasic - Features

At the moment, only PCM WAV files are supported, FLOAT files are not supported. About the SOUND command: the new syntax is needed to allow to specify the waveform: in QBASIC, the only waveform allowed was the square wave (since PC speaker was only able to emit that one), while modern audio system ca...
by angros47
Sep 01, 2019 11:44
Forum: Community Discussion
Topic: Audio library for FreeBasic - Features
Replies: 77
Views: 13518

Re: Audio library for FreeBasic - Features

I have updated the file on sourceforge, with the fix in playtomidi.bas and in the readme.txt file.

So far, I have the impression that people who tested it were more interested in the PLAY feature than in the SOUND feature.
by angros47
Sep 01, 2019 11:41
Forum: Community Discussion
Topic: fb 1.07 tests
Replies: 54
Views: 13755

Re: fb 1.07 tests

Option 1) build rtlib (no-exports) first, followed by rtlib (with exports), using different file names. The final filename would be the rtlib normally used, and no changes are needed to fbc compiler, only the build process Option 2) build rtlib (no-exports), and exports module (separately), then mo...
by angros47
Aug 31, 2019 17:36
Forum: Community Discussion
Topic: fb 1.07 tests
Replies: 54
Views: 13755

Re: fb 1.07 tests

I remind that, for the DOS version of Freebasic, the file "makesymbr.bas" in the directory src/rtlib/dos should be compiled, then makesymbr.bas should be executed, and after that, the runtime library should be compiled again. It's the only way to keep dynamic linking symbols up to date for...
by angros47
Aug 30, 2019 19:21
Forum: Community Discussion
Topic: Audio library for FreeBasic - Features
Replies: 77
Views: 13518

Re: Audio library for FreeBasic - Features

In file "playtomidi.bas", change the line:

Code: Select all

   do while p < len(playstr)


to:

Code: Select all

   do while p <= len(playstr)


to fix the bug in PLAY of the last character being ignored
by angros47
Aug 30, 2019 10:47
Forum: General
Topic: I hate shell
Replies: 8
Views: 3327

Re: I hate shell

I personally think that the SHELL command should be removed (or at least issue a warning message each time it is used), since it is often used improperly. I saw people using things like: SHELL "dir >output.txt" OPEN "output.txt" FOR INPUT AS #1 ... KILL "output.txt" (or...
by angros47
Aug 29, 2019 19:53
Forum: Windows
Topic: SOUND synthesis
Replies: 39
Views: 15748

Re: SOUND synthesis

hello angros47 just thought to let you know that your code needs a small change for it to work with FBwin64, namely change Integers to Longs. Thank you, but as you can see that was a code of ten years ago. Please read this topic: https://freebasic.net/forum/viewtopic.php?f=17&t=26256 for the la...
by angros47
Aug 29, 2019 17:32
Forum: DOS
Topic: Raster bar?
Replies: 1
Views: 7896

Raster bar?

I have found this article: http://www.hristogueorguiev.com/the-notorious-raster-copper-bar-effect-a-vga-dos-example/ This is a rough attempt to port it to FreeBasic. On DosBox it doesn't seem to work. Anyone wants to try on a real DOS machine? #include "dos\dos.bi" do do while(inp(&h3d...

Go to advanced search