Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Playing sound files in QB45
#4
(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.

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.
I don't want to do it in QB64 I want to do it in QB45/QB71..

Ohhh.   I should have read more closely.     Smile...   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.
Reply


Messages In This Thread
Playing sound files in QB45 - by eoredson - 01-04-2025, 05:54 AM
RE: Playing sound files in QB45 - by ahenry3068 - 01-04-2025, 05:58 AM
RE: Playing sound files in QB45 - by eoredson - 01-04-2025, 06:16 AM
RE: Playing sound files in QB45 - by ahenry3068 - 01-04-2025, 11:26 AM
RE: Playing sound files in QB45 - by ahenry3068 - 01-04-2025, 12:37 PM
RE: Playing sound files in QB45 - by a740g - 01-04-2025, 02:57 PM
RE: Playing sound files in QB45 - by eoredson - 01-05-2025, 12:26 AM
RE: Playing sound files in QB45 - by Kernelpanic - 01-04-2025, 11:20 PM
RE: Playing sound files in QB45 - by hsiangch_ong - 01-06-2025, 06:16 AM



Users browsing this thread: 8 Guest(s)