Portaudio lib on macOS : incompatible function pointer types #24783
Closed
Answered
by
AudioNiceMicroController
AudioNiceMicroController
asked this question in
Questions and Answers
-
Hello, I try to listen 440hz with this code bellow and I get an error. Thanks for your help.... The code
The error
The types in C
|
Beta Was this translation helpful? Give feedback.
Answered by
AudioNiceMicroController
Jun 27, 2025
Replies: 2 comments
-
I tested your code in Ubuntu linux and worked. I put the speakers and heard the beep. Changed only this: #flag -L/opt/homebrew/Cellar/portaudio/19.7.0/lib
#flag -lportaudio
#flag -I/opt/homebrew/Cellar/portaudio/19.7.0/include by this: #pkgconfig portaudio-2.0
So I think your code is Ok, maybe a MAC (I don't have) issue. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hello, Here the solution : define the callback type :
and
in
Final code :
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
AudioNiceMicroController
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
Here the solution : define the callback type :
and
in
Final code :