SDL 2 sound volume
Posted
#1
(In Topic #1028)
Regular

I was curious if there was any way to control the volume of a sound being played by the sdl2-sound component and there does appear to be a setting for it (integer range of 1-128), but whenever I add a value it does not seem to play at all. Has anyone else played around with this or have any ideas? I was hoping to use it to create a truer 3D sound effect in my OpenGL engine.
This is my sample code:
Fountain.Volume(Rand(0, 128))
Fountain.Play
https://gambasfarm.org/wiki/comp/gb.sdl2.audio/sound/volume
Posted
Guru

/comp/gb.sdl2.audio/channel/volume - Gambas Documentation
/comp/gb.sdl2.audio/music/volume - Gambas Documentation
/comp/gb.sdl2.audio/sound/volume - Gambas Documentation
Maybe you found a bug?
Posted
Regular

Music has been separate since the SDL 1 component.
1 guest and 0 members have just viewed this.


