About Sound commands....

Previous topic - Next topic

spacefractal

I posted this into the request post, but I would like to see few new sound commands that would add awesome thing to the GlBasic, since you have not have very much control over its sound. Music is all really ok.

1. BALANCESOUND(channgel%, pan#, volume#) <- you can't do that with PLAYSOUND(), since its start from beginning every time.
2. LOOPSOUND(channel%, TRUE/FALSE) <- yes I are aware of SOUNDPLAYING(), but its not seamless.
3. PAUSESOUND(bPause&) <- same as with music, just for sound.
4. ADPCM Wav support for sound. Its a joke its not supported. But i DO found ok NOT to support ogg and mp3 here.

Then I can do 4-5 channels loop music in the same way I did for example in a Space Taxi game I wrote for ten years ago (in Java).

PS. Fell free to move it into the request an sorry if I posted in this general forum.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

Kitty Hello

I heared that SDL 1.3 is ZLIB soon. That would offer new posiibilities of static linking and then I might be able to do something like that cross platform.

Ian Price

Doesn't SDL 1.3 come with licensing restrictions that could be tricky for GLB though Gernot?
I came. I saw. I played.

bigsofty

QuoteLOOPSOUND(channel%, TRUE/FALSE) <- yes I are aware of SOUNDPLAYING(), but its not seamless.

#2nd vote for this!  ;)
Cheers,

Ian.

"It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration."
(E. W. Dijkstra)

MrTAToad

QuoteDoesn't SDL 1.3 come with licensing restrictions that could be tricky for GLB though Gernot?
I'm sure negotiations could sort things out :)

Kitty Hello

Quote from: Ian Price on 2011-May-23
Doesn't SDL 1.3 come with licensing restrictions that could be tricky for GLB though Gernot?
There are rumours about it going ZLIB license, meaning, static linking. Only mentioning that you used it. Pretty sane for me.

Ian Price

That's good, however under most terms if you've used a component you might have to make public the source that uses it. Is this likely?
I came. I saw. I played.

spacefractal

as I aware a, OpenAL is the default sound today in Vista and Windows 7, since Direct Sound have been deprecated since Vista.

OpenAL also exists in most mobiles today, so its should been changed to that completly, and then use SDL as backup.

Me think OpenAL/SDL (if Lincense for that  can hold) can both to been used on Windows. So if the dev not want to include the dll for OpenAL, then the game would simply just revert to use SDL instead. Personly I would not mind to add the OpenAL dll.

The sound commands is just very limited, where the music commands is really ok.

PS. As I see for license for v1.2, the SDL could still been static linked, but need a new to use a costumer sdl, here its could just use sdl.dll if exists..... I think its a requirements and such.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

r0ber7

Quote from: spacefractal on 2011-May-22
1. BALANCESOUND(channgel%, pan#, volume#) <- you can't do that with PLAYSOUND(), since its start from beginning every time.

Ancient thread revival, sorry. But I'd like to know if there is such a thing as BALANCESOUND now, and if not, please please please consider it.  =D
My current workaround is splitting the soundfile up into tiny fragments and adjusting the pan every time PLAYSOUND gets called with the next bit, but that's still kinda jaggy.