01-04-2025, 11:26 AM
(This post was last modified: 01-04-2025, 11:38 AM by ahenry3068.
Edit Reason: additional info.
)
(01-04-2025, 06:16 AM)eoredson Wrote:(01-04-2025, 05:58 AM)ahenry3068 Wrote: The good folks on the QB64PE team were good enough to include it for you.I don't want to do it in QB64 I want to do it in QB45/QB71..
Start reading here:
https://qb64phoenix.com/qb64wiki/index.php/SNDOPEN
https://qb64phoenix.com/qb64wiki/index.php/SNDPLAY
https://qb64phoenix.com/qb64wiki/index.php/SNDCLOSE
_SNDPLAY works with .WAV, .AIFF, MP3, M4A, MP4 & Others.
I think it even works with MIDI (but you have to mess around with SNDFONTS for that, I haven't done it yet.
Ohhh. I should have read more closely. ... My bad !!. That's a whole other ball of wax. What machine do you plan on writing this on ? I think it should work on at least a fast 486. But anything slower than that is going to be a chore. QB45/QB71 are not the most efficient compilers. It may be a better approach to find a linkable library written in C or Pascal.
and just link it in to your program. I found this for MS-Dos (written in C, GPL code) --> https://www.forfoss.com/mpxplay-32-bit-c...d-windows/
Also some other stuff https://www.bttr-software.de/freesoft/so...mp3players. Most of the stuff seems to want to run in Dos protected mode. I don't think Microsoft ever added that capability to the Dos BASIC compilers. You may be able to find something here that will work with SHELL.