Search found 1440 matches

by angros47
Aug 15, 2019 22:27
Forum: Libraries
Topic: MiniB3d for FreeBasic
Replies: 929
Views: 149870

Re: MiniB3d for FreeBasic

Terrain functions (CreateTerrain, and LoadTerrain) are already available.

Your error seems to depend on wrong type assignment, you must check the declare of CopyEntity, and the line when you wrote DIM plane
by angros47
Aug 15, 2019 17:48
Forum: Libraries
Topic: MiniB3d for FreeBasic
Replies: 929
Views: 149870

Re: MiniB3d for FreeBasic

That bug is caused by an issue in capping of the volumetric shadow (it is one of the known downsides of the Z-fail algorithm used: shadows must be capped, or that effect will happen). Normally, OpenB3D should take care of building and capping the volumetric shadows automatically, but sometimes it mi...
by angros47
Aug 07, 2019 21:31
Forum: General
Topic: Quadra decimal
Replies: 8
Views: 326

Re: Quadra decimal

If you want to store a single variable, you would always need to use at least one byte, even if such a variable would need only two bits (there are no pointers for memory areas smaller than one byte) If you want to create an array, it would make more sense: such a data type could work to represent a...
by angros47
Aug 05, 2019 19:39
Forum: General
Topic: Using "PRINT #" and "INPUT ()" on binary files
Replies: 24
Views: 711

Re: Using "PRINT #" and "INPUT ()" on binary files

I verified for sure that, at least under Windows and DOS (not under Linux, at least in my test) GET# and INPUT() produce different results (and they may also change the position in different ways) if the file has been opened FOR INPUT or FOR BINARY
by angros47
Aug 02, 2019 23:12
Forum: Windows
Topic: Simplest way to play a MP3 file on Windows
Replies: 0
Views: 276

Simplest way to play a MP3 file on Windows

If I want to play a MP3 file called myfile.mp3 , this is all the code needed. #include "Windows.bi" #Include Once "crt/string.bi" #include "win/mmsystem.bi" ?mciSendString("open myfile.mp3 type mpegvideo alias song1", NULL, 0, 0) ?mciSendString("play song...
by angros47
Aug 02, 2019 15:00
Forum: Community Discussion
Topic: Audio library for FreeBasic - Features
Replies: 12
Views: 1390

Re: Audio library for FreeBasic - Features

a simple SID playing routine where nice for my project, but i think open and play MP3 files easy where a must have if it is not to mutch work. No. I think MP3 should stay outside of the SFX library, just as JPG are not included in the GFX library. also a easy to use 3D sound positioning/playing whe...
by angros47
Aug 01, 2019 19:26
Forum: General
Topic: The text and attribute pages in gfx mode ?
Replies: 3
Views: 219

Re: The text and attribute pages in gfx mode ?

No, there is not. I looked for that, too, when I was looking for a simple way to achieve text output in OpenGL mode (before I patched the graphic library, I hoped to implement a console mode similar to the one of Basic4Gl.... after implementing the complete rendering on OpenGL mode, I dropped that i...
by angros47
Jul 31, 2019 22:17
Forum: Community Discussion
Topic: Audio library for FreeBasic - Features
Replies: 12
Views: 1390

Re: Audio library for FreeBasic - Features

Ok, after a long time, I finally managed to have a prototype of what I had in mind: https://sourceforge.net/projects/freebasic-sfx-library/files/ WAV and midi files are supported, they can be read and written, and the library provides some primitives to modify them, or to create new ones from scratc...
by angros47
Jul 30, 2019 10:08
Forum: General
Topic: Using "PRINT #" and "INPUT ()" on binary files
Replies: 24
Views: 711

Re: Using "PRINT #" and "INPUT ()" on binary files

Ok, found it... in the original Quick Basic help file: INPUT$ Function Details Syntax INPUT$(n[,[#]filenumber]) The n is the number of characters (bytes) to read from the file. The filenumber is the number used to open the file. If the file is opened for random access, the argument n must be less th...
by angros47
Jul 30, 2019 10:02
Forum: General
Topic: Using "PRINT #" and "INPUT ()" on binary files
Replies: 24
Views: 711

Re: Using "PRINT #" and "INPUT ()" on binary files

Actually, for PRINT # documantation says: filenum The file number of a file or device opened for Output or Append . For INPUT # Reads from a text file through a bound file number a delimiter-separated set of values and LINE INPUT #: Reads a line from an open text file (opened for Input through a bou...
by angros47
Jul 29, 2019 23:27
Forum: General
Topic: Using "PRINT #" and "INPUT ()" on binary files
Replies: 24
Views: 711

Re: Using "PRINT #" and "INPUT ()" on binary files

Input() on a string? Are you sure you aren't confusing it with Mid?
by angros47
Jul 29, 2019 23:19
Forum: General
Topic: Using "PRINT #" and "INPUT ()" on binary files
Replies: 24
Views: 711

Re: Using "PRINT #" and "INPUT ()" on binary files

Close #f return text end Function Use Input() later in main-code, to get a string part (of the whole file content). In your example how can someone use "Input()" in the main code, since you already closed the file in the routine? My question is: in a binary file, are the commands: Dim As ...
by angros47
Jul 29, 2019 22:41
Forum: General
Topic: Using "PRINT #" and "INPUT ()" on binary files
Replies: 24
Views: 711

Re: Using "PRINT #" and "INPUT ()" on binary files

And for input?

The syntax:

Code: Select all

   DIM F as integer=FreeFile
   OPEN FileName for binary access read as F

   DIM buffer as string

   buffer=input(8,F)


is recommended or not?
(note: I cannot use Zstrings, because data might contain some zeroes)
by angros47
Jul 29, 2019 19:35
Forum: General
Topic: Using "PRINT #" and "INPUT ()" on binary files
Replies: 24
Views: 711

Re: Using "PRINT #" and "INPUT ()" on binary files

I understand, but your concept would not work with what I was planning to do. Anyway, that was not the subject of my question, the subject was if mixing INPUT() and FOR BINARY is allowed by the language design or not, since documentation is not much explicit

Go to advanced search