bbPlayMusic() + bbChannelVolume() bug

Archives Forums/Blitz3D SDK Bug Reports/bbPlayMusic() + bbChannelVolume() bug

Anatolie(Posted 2009) [#1]
I use DevCpp + Blitz3D SDK with following code

music_channel = bbPlayMusic("media/polka_anna.ogg");
if(music_channel==0) return 1;
bbChannelVolume( music_channel, 1.0 );

and there's no sound, but music_channel!=0.

When I use bbLoadSound()+bbPlaySound() with same file all OK, but too much memory used and too long time to start playing

I have tried convert OGG to WMA:

music_channel = bbPlayMusic("media/polka_anna.wma");
if(music_channel==0) return 1;
bbChannelVolume( music_channel, 1.0 );

and sound started, but I cannot change volume by bbChannelVolume, for example

bbChannelVolume( music_channel, 0.2 );

but the same function works fine with bbLoadSound()+bbPlaySound()

I have tried Blitz3DSDK v1.02, then v1.04beta4

How to solve it?

Giano(Posted 2009) [#2]
Same problems...
I can't loop sounds and change the volume (using wav).

marksibly(Posted 2009) [#3]

I will be addressing some of the sound issues soon, but I strongly suggest that you using something like FMOD for audio instead.

This is actually what the original Blitz3D used, but I couldn't use it for the SDK due to licensing issues.

Anatolie(Posted 2009) [#4]

Now I use SDL_mixer. I's free, very simple and compatible with Blitz3D SDK.
Thank you for you answer, I hope my game with your wonderful SDK will be completed soon.

Kind regards,
Anatoly Borisov,

Anatolie(Posted 2010) [#5]
example of using SDL_mixer + Blitz3D SDK ( from Scissors Game ), IDE: DevCpp

file audio.h