Search found 1507 matches

by angros47
Oct 21, 2019 21:54
Forum: Community Discussion
Topic: Audio library for FreeBasic - Features
Replies: 63
Views: 9323

Re: Audio library for FreeBasic - Features

I hope this could help: https://superuser.com/questions/757074/windows-text-file-viewer-that-works-on-linux-text-files Your routines could surely help: internally, in my library, WAV data are stored at 8 or 16 bit formats, mono or stereo, pcm uncompressed, with a fixed size header. So, in theory, wo...
by angros47
Oct 21, 2019 18:04
Forum: Community Discussion
Topic: Audio library for FreeBasic - Features
Replies: 63
Views: 9323

Re: Audio library for FreeBasic - Features

I used gedit in linux. I assume you are using windows. Try opening the files in wordpad and save them again, to see if it solves the issue
by angros47
Oct 20, 2019 18:31
Forum: Community Discussion
Topic: Audio library for FreeBasic - Features
Replies: 63
Views: 9323

Re: Audio library for FreeBasic - Features

Designing an API is likely harder than implementing it, since any future change will break a lot of code. At first, when I published my code snippets, I was caring mostly about implementation, but now that I have designed this prototype, I see how everyone has different opinions. And of course there...
by angros47
Oct 20, 2019 15:09
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 93
Views: 2743

Re: FreeBASIC 1.08 Development

I have read more about the coroutines, and the recent implementation in C++. So far, they seem something that can be easily done with setjmp and longjmp... am I missing something? What does the recent implementation in C++ do, to make them easier/more practical to use?
by angros47
Oct 20, 2019 12:00
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 93
Views: 2743

Re: FreeBASIC 1.08 Development

The interesting thing is that FreeBasic strings are closer to C++ strings than to C strings (a descriptor that holds data about the string size and its address). Still, there is no way to FreeBasic and C++ to "talk" without using the older, and less powerful format of zero terminated strin...
by angros47
Oct 19, 2019 23:34
Forum: Community Discussion
Topic: Audio library for FreeBasic - Features
Replies: 63
Views: 9323

Re: Audio library for FreeBasic - Features

So, instead of having to learn only "WAVE" as a new forbidden keyword, people would have to learn WAVE, FILTER (there is only one function that works as filter), MODULATOR, MIDI .... again, with so many categories, it would not be much different from the current situation
by angros47
Oct 19, 2019 22:48
Forum: Community Discussion
Topic: Audio library for FreeBasic - Features
Replies: 63
Views: 9323

Re: Audio library for FreeBasic - Features

I get your point, of course. Sometimes, for that reason, in C, all functions of a library have a prefix (all functions of OpenGL, for example, start with "gl"). All the extra commands could have a _fbsfx_ prefix, for example, but they would make the code less readable, and uglier. Also, th...
by angros47
Oct 19, 2019 22:05
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 93
Views: 2743

Re: FreeBASIC 1.08 Development

Also, I have a question for coderJeff: any plan for generics? In case, how would syntax be? I saw how it is in RapidQ: http://macosa.dima.unige.it/om/prg/guidarq/chapter10.html#108 TYPE NewClass<DataType> EXTENDS QOBJECT N AS DataType END TYPE DIM MyClass1 AS NewClass<INTEGER> DIM MyClass2 AS NewCla...
by angros47
Oct 19, 2019 21:32
Forum: Community Discussion
Topic: Audio library for FreeBasic - Features
Replies: 63
Views: 9323

Re: Audio library for FreeBasic - Features

Your macro would change a call to "Wave (sine, 2000)" into "Wave_sine (2000)"

Honestly, I don't see how it could reduce "consumption" of words: if instead of naming a function "SineWave", I named it "Wave_sine", what would I gain?
by angros47
Oct 19, 2019 20:32
Forum: Community Discussion
Topic: Audio library for FreeBasic - Features
Replies: 63
Views: 9323

Re: Audio library for FreeBasic - Features

You are right, but the different waveforms require different parameters: SineWave, TriangleWave and SawToothWave require only a frequency, while PulseWave requires an (optional) duty cycle parameter, NoiseWave requires no parameters at all, and HarmonicWave allows to specify the intensity of up to t...
by angros47
Oct 19, 2019 19:44
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 93
Views: 2743

Re: FreeBASIC 1.08 Development

Last time I tried, some versions ago, with OpenB3D, FreeBasic was able to call the methods from a C++ class in a DLL. I was trying to build a set of include files to be able to use OpenB3D directly, and not through wrapper. A missing feature was the total incompatibility with C++ strings (if a C++ f...
by angros47
Oct 19, 2019 17:59
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 93
Views: 2743

Re: FreeBASIC 1.08 Development

A lot of people here have a lot of ideas and suggestions to improve FreeBasic. I have a message for all of them: please, stop talking about your ideas, and start coding them! We aren't short of people with "ideas". We need people able to implement them. I have suggested for years to add th...
by angros47
Oct 18, 2019 12:36
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 93
Views: 2743

Re: FreeBASIC 1.08 Development

coroutines... something like this? #define crBegin static state as integer: select case(state): case 0: #define crReturn(x) state=__LINE__: return x: case __LINE__ #define crFinish end select function coroutine() as integer static i as integer crBegin crReturn (1) crReturn (2) crReturn (3) crFinish ...
by angros47
Oct 18, 2019 0:02
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 93
Views: 2743

Re: FreeBASIC 1.08 Development

If this/any next version doesn't have some features aimed toward new users or beginners - FB is dead. I understand your point, speedfixer: that's why I tried to implement sounds for FreeBasic. Although, of course, another user seemed to dislike this idea: after all, there is no way to make everyone...
by angros47
Oct 15, 2019 19:28
Forum: General
Topic: Squares
Replies: 7029
Views: 426471

Re: Squares

Albert, why do you keep posting here your efforts, since you are not listening at all at what people replied to you?

Go to advanced search