How are the Pascal units generated? #5
Replies: 1 comment 1 reply
-
Hi Roland, Thanks for reaching out, and very cool that you’re using the code to build a music player on Linux with FPC! 👍🏿 Regarding your question: I use C++Builder Modern to compile the Good news: everything you need to regenerate or update the bindings is already included in the distro. I even wrote a standalone utility to clean up the generated headers — it’s the same toolchain I use myself. Just run aaa_git_miniaudio.cmd (calls Unfortunately, it’s all Windows-based at the moment, using C++Builder to make the .o files. If you have sometime to compile the .c files and create an Best regards, |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello Jarrod.
Thank you for this great project.
I stole your code (from CPas.miniaudio.pas unit) to make a simple command-line music player for Free Pascal and Linux. (I attach the code in case you would wish to take a look.)
Recently I saw that there was a new version of miniaudio. I tried to use the new version with the same Pascal code. It still compiles, but it doesn't work: I get an error 217 when I launch the player. I wasn't able to find where the error came from.
If you don't mind, would it be possible to know how you generate your Pascal units? I would like to learn to do it by myself, with FPC if possible (since I am on Linux and don't have Delphi).
Best regards.
Roland
miniaudio-musicplayer.zip
Beta Was this translation helpful? Give feedback.
All reactions