123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|423|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Blitz Max -> Small Silly Question - How to Play Sound?

Thu, 17 Jul 2025, 07:18
forest_gump

Small Silly Question - How to Play Sound?


hi all forgive me for this question...

But how do you play sound in BlitzMax NG? (OGG and WAV files?) What are the rules of the formats it can play? How do you actually do that in code? I mean, how do I play a music file?

I've been trying to play this OGG or WAV sound, but with no success

P.S., and by the way, I got two versions of BlitzMax NG, one that is version 130-ish, I got from BlitzMax.org it has buth 32/64 plus mingw32 for x86 and x64 the other one is from the itch.io site version 150-ish without MinGW but with a installer both for 32 / 64 bit however this version doesn't integret well with vscode - I prefer the 130-ish version although it's pretty old...

Thank you...
Thu, 17 Jul 2025, 08:34
Jayenkai
Oh yeah, that's not easy is it! Gosh, all my years of using my own PlaySFX() command, I'd forgotten how quirky BMax is.

In my old framework, I had a simple bit that loaded numerical sound effects, all .wav format.


And then a PlaySFX function that works like this.


Hopefully you can make use of that, somehow!

-=-=-
''Load, Next List!''
Thu, 17 Jul 2025, 09:40
forest_gump
ok, I found the answer - kinda, although I'm still not sure what I'm doing but it's starting to make sense kinda... :/

small test demo :x


Thu, 17 Jul 2025, 10:11
Pixel_Outlaw
It would be best to open up Max IDE so you can look at the help page.
There's a sound playing example.
I would suggest reading the whole manual first.

https://blitzmax.org/docs/en/api/brl/brl.audio/