Search found 644 matches

by badidea
Apr 22, 2018 23:11
Forum: Libraries
Topic: fbsound 1.0 Linux Windows 32/64-bit (wav mp3 ogg mod it xm s3m)
Replies: 223
Views: 44660

Re: fbsound 1.0 Linux Windows 32/64-bit (wav mp3 ogg mod it xm s3m)

May I ask a short question here?

How do I check that a sound object is being played?
E.g. On press "h", I want to sound a horn, but only if the horn is not already active.
by badidea
Apr 21, 2018 12:31
Forum: Libraries
Topic: fbsound 1.0 Linux Windows 32/64-bit (wav mp3 ogg mod it xm s3m)
Replies: 223
Views: 44660

Re: fbsound 1.0 Linux Windows 32/64-bit (wav mp3 ogg mod it xm s3m)

I had to install some additional 'libasound' libraries, but I hear sound now! Thanks!
Fbc 1.04.0 32-bit, Ubuntu Mate 16.04 64-bit.
I'll run all the tests later today...

Edit: All examples run as expected.
by badidea
Apr 18, 2018 19:44
Forum: General
Topic: Squares
Replies: 5805
Views: 320943

Re: Squares

I've read that the U.S. Govt. was able to maintain a 16 minute orbit..So a 16 minute orbit must be about 150 miles up , with my ether theory?? Where did you read that? A Donald Trump tweet? I think it was fake news. Fastest orbital period for Earth is just above the surface (ignoring air resistance...
by badidea
Apr 15, 2018 14:32
Forum: Libraries
Topic: fbsound 1.0 Linux Windows 32/64-bit (wav mp3 ogg mod it xm s3m)
Replies: 223
Views: 44660

Re: fbSound for Linux x86 Win32 (wav mp3 ogg mod it xm s3m)

From what I read here (https://stackoverflow.com/questions/2901694/programmatically-detect-number-of-physical-processors-cores-or-if-hyper-threadin) and here (https://wiki.osdev.org/Detecting_CPU_Topology_(80x86)) CPUID function aex=1 gives the ' logical core count'. See links for 'physical' core co...
by badidea
Apr 14, 2018 21:00
Forum: Libraries
Topic: fbsound 1.0 Linux Windows 32/64-bit (wav mp3 ogg mod it xm s3m)
Replies: 223
Views: 44660

Re: fbSound for Linux x86 Win32 (wav mp3 ogg mod it xm s3m)

GenuineIntel, X86, 16 cpu cores, CPUID, FPU, RDTSC, CMOVxx, FCMOVxx, MMX I,II, SSE,2,3,4.1,4.2 ~2593 MHz (fbc = 1.04.0 32-bit, Windows 8.1) GenuineIntel, X86, 16 cpu cores, CPUID, FPU, RDTSC, CMOVxx, FCMOVxx, MMX I,II, SSE,2,3,4.1,4.2 ~2593 MHz (so same) (fbc = 1.04.0 32-bit, Ubuntu Mate 64bit) cat ...
by badidea
Apr 13, 2018 16:24
Forum: General
Topic: Access inside objects
Replies: 18
Views: 390

Re: Access inside objects

To reduce these kind of pointer problems, I mostly chose the pointer names in such a way that I know that it is a pointer. E.g.: pCanvas or canvasPtr.
by badidea
Apr 12, 2018 21:36
Forum: General
Topic: Access inside objects
Replies: 18
Views: 390

Re: Access inside objects

This part is suspicious: GridStr [ ((Yr-1)*Cwijd)+Xr ] Cwijd is -2791790 when printing "H" of "Hello" Do some min/max checks here. Probably anything that uses [ ] is suspicious. I don't think freebasic range checking (with -exx) does not work for this. Probably safer to use redim...
by badidea
Apr 12, 2018 20:17
Forum: General
Topic: Access inside objects
Replies: 18
Views: 390

Re: Access inside objects

Here it crashes when trying to print "a" of "Vera" (last character). edit: Above is maybe wrong. But: For lus=0 to Len(Value)-1 GDisplay(asc(mid(Value,lus,1))) next Should be: For lus = 1 to Len(Value) GDisplay(asc(mid(Value,lus,1))) next Or (simpler): For lus = 0 to Len(Value)-1...
by badidea
Apr 12, 2018 8:02
Forum: General
Topic: Squares
Replies: 5805
Views: 320943

Re: Squares

I agree. Albert seems intentionally obfuscating things.
by badidea
Apr 11, 2018 20:35
Forum: General
Topic: Squares
Replies: 5805
Views: 320943

Re: Squares

I quit. This is useless. Good luck.
by badidea
Apr 10, 2018 22:22
Forum: General
Topic: Squares
Replies: 5805
Views: 320943

Re: Squares

Earths Gravity pulls objects in at 9.8 meters a second... at the surface, due to the earth's mass As long as you are free falling you have no weight.. Only the acceleration of gravity. yes You don't feel weight , till you land on a surface. and possibly break some bones or worse Once you land on a ...
by badidea
Apr 10, 2018 21:15
Forum: General
Topic: Squares
Replies: 5805
Views: 320943

Re: Squares

The term 'weight' can better left be out. It is not very well defined. Wikipedia: "In science and engineering, the weight of an object is related to the amount of force acting on the object, either due to gravity or to a reaction force that holds it in place." Unit: Newton (N). In daily us...
by badidea
Apr 10, 2018 17:08
Forum: General
Topic: Squares
Replies: 5805
Views: 320943

Re: Squares

albert wrote:I'm getting myself confused!!!

Clearly, because every following statement is completely wrong.
by badidea
Apr 10, 2018 9:53
Forum: General
Topic: Constructor question [solved]
Replies: 3
Views: 96

Re: Constructor question [solved]

Ok, thanks. That is clear. Subject marked as 'solved'.
by badidea
Apr 09, 2018 22:22
Forum: General
Topic: Constructor question [solved]
Replies: 3
Views: 96

Constructor question [solved]

Hello all, in the code below, is there a significant difference between these two initializers? dim b as qu_type = qu_type(2.3, "s") dim c as qu_type = type<qu_type>(5.6, "m") Or is it the same, in another way? type qu_type dim as single value dim as string unit declare construct...

Go to advanced search