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
RE: Playing sound files in QB45 - by ahenry3068 - 01-10-2025, 05:37 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Sound Ball SierraKen 0 449 12-17-2024, 11:34 PM
Last Post: SierraKen
  Making files more portable JRace 9 2,589 10-26-2024, 02:16 PM
Last Post: JRace
  MouseyBalls, playing with balls using mouse (repel/attract) Dav 3 1,374 10-13-2023, 10:57 PM
Last Post: Dav
  Playing with dragon curve fractal Dav 11 2,491 10-09-2023, 12:23 AM
Last Post: Dav
  Functional sound equalization live! Petr 22 4,969 03-24-2023, 08:35 PM
Last Post: Petr

Forum Jump:


Users browsing this thread: