Search found 1002 matches

by Roland Chastain
Oct 21, 2020 17:27
Forum: Libraries & Headers
Topic: fbsound 1.2 Windows/Linux (sid wav mp3 ogg mod it xm s3m)
Replies: 28
Views: 8706

Re: preview: of fbsound 1.2 (dynamic) Windows/Linuxt (sid wav mp3 ogg mod it xm s3m)

With the binaries included in the package, the library works, excepted fbs_Set_PlugPath() . With the library compiled by myself, nothing works, even with the binaries in the current directory. I must have done something wrong. debug: _InitPlugout: can't load 'libfbsound-alsa-32.so' ! debug: fbs_Init...
by Roland Chastain
Oct 21, 2020 17:11
Forum: Libraries & Headers
Topic: fbsound 1.2 Windows/Linux (sid wav mp3 ogg mod it xm s3m)
Replies: 28
Views: 8706

Re: preview: of fbsound 1.2 (dynamic) Windows/Linuxt (sid wav mp3 ogg mod it xm s3m)

D.J.Peters wrote:
Roland Chastain wrote:There is a typo in build scripts: pendantic instead of pedantic.
good find you must be a pedantic person :lol:
Yes. :)
D.J.Peters wrote:I wonder why fbc accept it wrong written ?
Answer here:
viewtopic.php?p=276419#p276419
by Roland Chastain
Oct 21, 2020 16:50
Forum: General
Topic: Execution timing of a Sub launched as a thread
Replies: 25
Views: 3647

Re: Execution timing of a Sub launched as a thread

fxm wrote:Example of 'ThreadInitThenStart' UDT structure:
Great! I will certainly reuse it (and also your previous example).

@SARG
Thank you for explanations.
by Roland Chastain
Oct 21, 2020 15:46
Forum: Libraries & Headers
Topic: fbsound 1.2 Windows/Linux (sid wav mp3 ogg mod it xm s3m)
Replies: 28
Views: 8706

Re: preview: of fbsound 1.2 (dynamic) Windows/Linuxt (sid wav mp3 ogg mod it xm s3m)

There is a typo in build scripts: pendantic instead of pedantic.
by Roland Chastain
Oct 21, 2020 13:43
Forum: Libraries & Headers
Topic: fbsound 1.2 Windows/Linux (sid wav mp3 ogg mod it xm s3m)
Replies: 28
Views: 8706

Re: preview: of fbsound 1.2 (dynamic) Windows/Linuxt (sid wav mp3 ogg mod it xm s3m)

@D.J.Peters Thank you for your work on the library and on the documentation. I can't wait to make a new test. :) How do you setup fbc 32 and 64 bit on the 64-bit PC ? I downloaded a Linux 32 package from /stw/builds , and installed one after one the missing libraries (the dev version). The missing l...
by Roland Chastain
Oct 21, 2020 7:47
Forum: Libraries & Headers
Topic: fbsound 1.2 Windows/Linux (sid wav mp3 ogg mod it xm s3m)
Replies: 28
Views: 8706

Re: preview: of fbsound 1.2 (dynamic) Windows/Linuxt (sid wav mp3 ogg mod it xm s3m)

Tested successfully Linux 32 and 64 (both on a 64 machine). Not really important, but fbs_Set_PlugPath() still doesn't work for me. I don't really need it. If it can't be fixed, maybe you could simply remove it? Just a suggestion. I hope you won't take it bad. debug: fbsound-1.2 RuntimeUnload Destru...
by Roland Chastain
Oct 21, 2020 6:45
Forum: General
Topic: Execution timing of a Sub launched as a thread
Replies: 25
Views: 3647

Re: Execution timing of a Sub launched as a thread

On Windows there is a parameter to not let the new thread running immediately but that requires to execute an extra statement for starting it. So there is no way do that in a multiplatform program? In Free Pascal, you can create a thread with a boolean parameter CreateSuspended, and after that you ...
by Roland Chastain
Oct 20, 2020 5:21
Forum: Projects
Topic: Adapting MINIMAX under FreeBasic
Replies: 16
Views: 8025

Re: Adapting MINIMAX under FreeBasic

Hello! I converted Minimax to a XBoard/WinBoard engine.

Download
by Roland Chastain
Oct 19, 2020 16:40
Forum: General
Topic: Execution timing of a Sub launched as a thread
Replies: 25
Views: 3647

Re: Execution timing of a Sub launched as a thread

Hello fxm!

I don't really understand what is the purpose of the local ptid variable. If I replace

Code: Select all

If ptid = 0 Then
with

Code: Select all

If p = 0 Then
the print isn't executed.
by Roland Chastain
Oct 18, 2020 20:44
Forum: Linux
Topic: Errors in asm: invalid use of register, bad expression...
Replies: 6
Views: 2117

Re: Errors in asm: invalid use of register, bad expression...

SARG wrote:A hint in such case : compile with -RR (or R) so you can see the faulty asm line using the line number given by the assembler.
OK, I will try that next time.
by Roland Chastain
Oct 18, 2020 19:20
Forum: Linux
Topic: Errors in asm: invalid use of register, bad expression...
Replies: 6
Views: 2117

Re: Errors in asm: invalid use of register, bad expression...

SARG wrote:Hi Roland,

Change OFFSET by OFSET (or other name). That's all.
Hello. Yes, it solves the problem. Thank you.
by Roland Chastain
Oct 18, 2020 15:42
Forum: Linux
Topic: Errors in asm: invalid use of register, bad expression...
Replies: 6
Views: 2117

Re: Errors in asm: invalid use of register, bad expression...

I have no problem compiling. What version of the compiler are you using? Thank you for your answer. Here is the version of my 32-bit compiler : FreeBASIC Compiler - Version 1.07.1 (2019-09-27), built for linux-x86 (32bit) Copyright (C) 2004-2019 The FreeBASIC development team. As I said, I can comp...
by Roland Chastain
Oct 18, 2020 13:40
Forum: Linux
Topic: Errors in asm: invalid use of register, bad expression...
Replies: 6
Views: 2117

Errors in asm: invalid use of register, bad expression...

Hello! I am trying to compile a project to 32-bit. I get many compilation errors, like "invalid use of register, bad expression"... There is no assembler in my source code, so I suspect a conflict in identifiers, but I don't know which identifiers are problematic. When I compile to 64-bit ...
by Roland Chastain
Oct 08, 2020 8:32
Forum: Projects
Topic: Eschecs FreeBASIC (UCI chess GUI)
Replies: 446
Views: 96757

Re: Eschecs 1.2.1 (UCI chess GUI)

Thank you fxm for your investigations. Yes, it would be good to understand exactly the problem. Unfortunately I can't help you help much, because all that is still not very clear for me. I intend to retouch soon a project which has more or less the same configuration. I hope it will be the occasion ...
by Roland Chastain
Oct 06, 2020 15:52
Forum: Projects
Topic: Eschecs FreeBASIC (UCI chess GUI)
Replies: 446
Views: 96757

Re: Eschecs 1.2.1 (UCI chess GUI)

Why not 'listener.callback' ? Yes. Here is the final (?) version, with other minor modifications. sub ThreadProcedure(byval aParam as any ptr) DebugLn("->") dim s as string with *cast(TListener ptr, aParam) do if .doRead then s = ReadEngineOutput if s <> "" then mutexlock(.sync)...