Search found 1257 matches

by angros47
Sep 18, 2017 10:18
Forum: Windows
Topic: Streaming audio
Replies: 12
Views: 1644

Re: Streaming audio

Thank you!
by angros47
Sep 18, 2017 8:18
Forum: Windows
Topic: Streaming audio
Replies: 12
Views: 1644

Re: Streaming audio

No, I'd use ULong instead, because we are dealing with a "unsigned 32-bit integer", aka: C's UINT, which in FB, is ULong (fixed data type = 32-bit) on all platforms: 32/64 bit's. Have you tried on Windows 64 bit? Does it work? Because DWORD, too, is 32 bit... and it does not work (I have ...
by angros47
Sep 16, 2017 19:56
Forum: Community Discussion
Topic: OpenB3D and 360° video
Replies: 1
Views: 98

OpenB3D and 360° video

My first attempt to produce a 360° video.

https://youtu.be/yBZevbHlbKU
by angros47
Sep 16, 2017 10:12
Forum: Tips and Tricks
Topic: MPEG 1 encoder
Replies: 6
Views: 183

Re: MPEG 1 encoder

You used jo_write_mpeg(fh, Screenptr, 800, 600, 24), so you encoded at 24 frames per second. The last parameter is the framerate of the video, if you want 60 frames per second you have to change it to 60
by angros47
Sep 15, 2017 10:22
Forum: Tips and Tricks
Topic: MPEG 1 encoder
Replies: 6
Views: 183

Re: MPEG 1 encoder

It is correct, the demo program is supposed to draw a sine wave.

Be sure to use the second version, otherwise red and blue channel would be swapped and colors would look incorrect
by angros47
Sep 15, 2017 9:29
Forum: Community Discussion
Topic: [Patch] Rendering of FreeBasic graphic on OpenGL
Replies: 49
Views: 1024

Re: [Patch] Rendering of FreeBasic graphic on OpenGL

Thank you! I also noticed that, while in 32 bit mode any resolution is supported, in 16 bit mode horizontal resolution has to be a multiple of 2, and in 8 bit mode it has to be a multiple of 4. Otherwise, the image will be deformed. The reason is that each line of pixel, in FreeBasic, is supposed to...
by angros47
Sep 15, 2017 8:24
Forum: Tips and Tricks
Topic: MPEG 1 encoder
Replies: 6
Views: 183

Re: MPEG 1 encoder

Oh, the line: float r = c[0], g = c[1], b = c[2]; should be changed into float b = c[0], g = c[1], r = c[2]; because FreeBasic internally uses this format: Here is the fixed version: /* public domain Simple, Minimalistic, No Allocations MPEG writer - http://jonolick.com * * Latest revisions: * 1.02 ...
by angros47
Sep 14, 2017 20:30
Forum: Tips and Tricks
Topic: MPEG 1 encoder
Replies: 6
Views: 183

MPEG 1 encoder

I found this simple c++ code (I just modified a declaration, to make it usable with FreeBasic): /* public domain Simple, Minimalistic, No Allocations MPEG writer - http://jonolick.com * * Latest revisions: * 1.02 (22-03-2017) Fixed AC encoding bug. * Fixed color space bug (thx r- lyeh!) * 1.01 (18-1...
by angros47
Sep 13, 2017 22:45
Forum: Community Discussion
Topic: [Patch] Rendering of FreeBasic graphic on OpenGL
Replies: 49
Views: 1024

Re: [Patch] Rendering of FreeBasic graphic on OpenGL

Then, adding those lines:

Code: Select all

CONST AS INTEGER OGL_MANUAL_SYNC = 1, _
                             OGL_AUTO_SYNC = 2


to fbgfx.bi would solve
by angros47
Sep 09, 2017 15:42
Forum: Community Discussion
Topic: Question about rtlib
Replies: 13
Views: 434

Re: Question about rtlib

A thing that I would love to add (and that is written in pure FB) is the sound driver I have written (I'd like to have it to work as the graphic library, that is linked only if the program needs it)
by angros47
Sep 08, 2017 20:33
Forum: Community Discussion
Topic: [Patch] Rendering of FreeBasic graphic on OpenGL
Replies: 49
Views: 1024

Re: [Patch] Rendering of FreeBasic graphic on OpenGL

I found the issue, and I uploaded the updated files
by angros47
Sep 06, 2017 21:37
Forum: Community Discussion
Topic: [Patch] Rendering of FreeBasic graphic on OpenGL
Replies: 49
Views: 1024

Re: [Patch] Rendering of FreeBasic graphic on OpenGL

In ScreenCreate, can you print the variable "id"? Place the print before the switch instruction
by angros47
Sep 06, 2017 21:18
Forum: Community Discussion
Topic: [Patch] Rendering of FreeBasic graphic on OpenGL
Replies: 49
Views: 1024

Re: [Patch] Rendering of FreeBasic graphic on OpenGL

Weird.... what happens if you force it to be called, by removing the "if", replacing :

Code: Select all

   if (__fb_gl_params.mode_2d!=0)
      fb_hGL_ScreenCreate();


with

Code: Select all

   /*if (__fb_gl_params.mode_2d!=0)*/
      fb_hGL_ScreenCreate();

Go to advanced search