(07-01-2022, 02:23 PM)Steffan-68 Wrote:(06-30-2022, 09:42 PM)a740g Wrote:(06-28-2022, 04:06 PM)Steffan-68 Wrote: The program is great.
Only as a MIDI payer alone does it work very well.
I'm very happy about that.
I also have a lot of MOD sound files, but I can't find any way to include them in my programs.
Which is actually a shame because they are very small and contain good sound.
Thank you!
Well, you are in for a treat.
If the files are just AMIGA Protracker compatible MODs then you can try a740g/QB64-MOD-Player: A ProTracker (and compatible) MOD player & library written in QB64 (github.com)
If you've got S3M, XM & IT then try a740g/QB64-LibXMPLite: LibXMP Player and Library for QB64 (github.com)
The second one is based off a similar library by RhoSigma you can find here: https://staging.qb64phoenix.com/showthread.php?tid=29
Thank you for your prompt reply
The first MOD Player is already very good and I like it.
I would like the second ( LIBXMP Player ) better but it causes a compiler error for me.
The attached EXE runs great.
At the moment I just can't find the error why it isn't compiled.
Tried it with QB64PE 0.8.2 and QB64 2.0.2 in 64 bit but it always crashes with an error.
Ah. I remember why it gives the 12555 error. It's a bug in QB64. I submitted a bug report. However, there is a workaround.
See Linking to static libraries does not work on Windows · Issue #112 · QB64-Phoenix-Edition/QB64pe (github.com)
And this one https://discord.com/channels/97538191235...0487655454
The workaround is in the Discord thread.
You'll have to make the changes to the QB64 IDE source code and recompile it.
If you want, you can also download the one that I compiled (attachment below). This is for QBPE 0.8.2. Download, then run a virus scan (VirusTotal - Home) and then replace qb64.exe in the QB64 folder with this one.
Thank you for calling this out. I've updated the LibXMP GitHub README.md with a note on this bug.