Search found 14 matches

by det_uio
Thu Aug 14, 2025 12:33 pm
Forum: Coding Questions
Topic: why I cannot write a procedure in the loop event
Replies: 19
Views: 642

Re: why I cannot write a procedure in the loop event

If there isn't window event (like move mouse) there isn't drawing.

I'm going further by saying that those who don't have 4000 messages can't write :D
by det_uio
Wed Aug 13, 2025 2:15 pm
Forum: Coding Questions
Topic: win or Mac, this code crashes
Replies: 6
Views: 307

Re: win or Mac, this code crashes

It seems to get that with F5 which is the using of debugger by default (in my case).
I have used enableExplicit and all variable takes 8 bytes (.I or .d).
WhaitEvent() is used to get more reactivity.
I have to test it on Windows 11.

Here's the code


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; sndfile ...
by det_uio
Wed Aug 13, 2025 2:12 pm
Forum: Coding Questions
Topic: why I cannot write a procedure in the loop event
Replies: 19
Views: 642

Re: why I cannot write a procedure in the loop event

It seems to get that with F5 which is the using of debugger by default (in my case).
I have used enableExplicit and all variable takes 8 bytes (.i or .d).
WhaitEvent() is used to get more reactivity.
I have to test it on Windows 11.
by det_uio
Tue Aug 12, 2025 6:52 am
Forum: Coding Questions
Topic: win or Mac, this code crashes
Replies: 6
Views: 307

win or Mac, this code crashes

Maybe you are interesting to solve
viewtopic.php?t=87290
here the GitHub project :
https://github.com/AudioNiceMicroContro ... -show-play
by det_uio
Tue Aug 12, 2025 6:48 am
Forum: Coding Questions
Topic: on Mac freezes clicks if his frequency is too high
Replies: 4
Views: 154

Re: on Mac freezes clicks if their frequency is too high

Thanks.

I have answered in viewtopic.php?t=87290

and post in "Coding Questions"

viewtopic.php?t=87295
by det_uio
Mon Aug 11, 2025 5:15 pm
Forum: Coding Questions
Topic: on Mac freezes clicks if his frequency is too high
Replies: 4
Views: 154

on Mac freezes clicks if his frequency is too high

Hello,

I noticed that this version of the program on Mac freezes clicks if their frequency is too high.

You have to wait almost a second between each click...

; Constantes
#LARGEUR = 500
#HAUTEUR = 200
#HAUTEUR_BOUTON = 30
#ESPACEMENT = 10

; Création de la fenêtre principale
OpenWindow(0, 0, 0 ...
by det_uio
Mon Aug 11, 2025 4:59 pm
Forum: Coding Questions
Topic: why I cannot write a procedure in the loop event
Replies: 19
Views: 642

Re: why I cannot write a procedure in the loop event

To be more precise, it blocks in the return of the function. It's like it doesn't like the context of the procedure in the loop.

During execution it put in red the line:
ProcedureReturn 0

from this code:

Debug "monCanva : "+Str(monCanva)
Procedure dessine(canva.i, x.l, Array moyennes.d(1)); 1 ...
by det_uio
Mon Aug 11, 2025 3:52 pm
Forum: Coding Questions
Topic: why I cannot write a procedure in the loop event
Replies: 19
Views: 642

Re: why I cannot write a procedure in the loop event

Yes, I have tried but without success. 100 value seems ok ...
by det_uio
Mon Aug 11, 2025 12:56 pm
Forum: Coding Questions
Topic: why I cannot write a procedure in the loop event
Replies: 19
Views: 642

Re: why I cannot write a procedure in the loop event

here the Mac code if you want. Just install port audio and libsndfile with brew.
Else compile portaudio with visual studio. I got the dll and .lib.and If you want I give the lib on GitHub. Tell me...

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; sndfile ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; --- Constantes ...
by det_uio
Mon Aug 11, 2025 12:26 pm
Forum: Coding Questions
Topic: why I cannot write a procedure in the loop event
Replies: 19
Views: 642

Re: why I cannot write a procedure in the loop event

here the code for windows

Bug code (from line 293).
Lib path are on lines 12 and 77
Wav path is in line 137


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; sndfile ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; --- Constantes libsndfile ---
#SFM_READ = $10 ; Mode lecture pour sf_open (0x10)
#SFM_WRITE = $20
#SFM ...
by det_uio
Mon Aug 11, 2025 11:42 am
Forum: Coding Questions
Topic: why I cannot write a procedure in the loop event
Replies: 19
Views: 642

why I cannot write a procedure in the loop event

Hello,

why I cannot write a procedure in the loop event (it crashes after 5-10 second). I have to write all the code from procedure in the loop.

It is just a procedure which takes the number of a gadget...

Crash code



Procedure dessine(canva.l, x.l, Array moyennes.d(1)); 1 pOUR VECTEUR ...
by det_uio
Wed Jul 30, 2025 7:19 pm
Forum: Coding Questions
Topic: .dll portaudio bug import on win
Replies: 2
Views: 140

Re: .dll portaudio bug import on win

Thanks

:D
by det_uio
Wed Jul 30, 2025 8:28 am
Forum: Coding Questions
Topic: .dll portaudio bug import on win
Replies: 2
Views: 140

.dll portaudio bug import on win

Hello,

I get this error with windows . (It is ok with MacOs, see https://www.purebasic.fr/french/viewtopic.php?t=19391)

From this line :
ImportC "C:|Users\detro\Downloads\portaudio_sndfile\portaudio-19.7.0\build\msvc|x64\Release\portaudio_x64.dl]"

I get
error:
C:\Users\detro\Downloads\portaudio ...