[Gambas-user] gb3: gb.sdl.sound disallows more than 8 sounds/channels at once
Benoît Minisini
gambas at ...1...
Sun Jul 24 14:57:47 CEST 2011
>
> Awesome news. I'm glad 32 is arbitrary, also. I have:
>
> ' General declarations.
> Public Struct Effect ' Structure containing an individual sound
> effect's data.
> Sample As Sound ' Waveform data (file).
> Chan As Channel ' Default channel to play on.
> AmpCurrent As Single ' Current amplitude.
> AmpTarget As Single ' Target amplitude.
> AmpScale As Single ' Target amplitude multiplier.
> End Struct
> Public Environment[16] As Struct Effect ' Environmental sound effects.
>
> Public Sub Initialize()
>
> ' Start basic environmental sound effects.
>
> Channels.Count = 32
>
Sorry, I didn't notice that line. Mmm... I don't know: That value is directly
sent to the SDL_mixer library, so it should work!
--
Benoît Minisini
More information about the User
mailing list