IrrKlang Again

BlitzMax Modules Forums/Brucey's Modules/IrrKlang Again

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

The driver (engine) is not currently exposed, but you should be able to access the other objects by casting.

For example, cast your TSound to TISoundSourceSound, gains you access to the _sound field, which is a TISoundSource object. so :
Local sound:TSound = LoadSound(....)

Local mySoundSource:TSoundSoure = TISoundSourceSound(sound)._sound
Print mySoundSource.GetPlayLength()

And for TChannel, cast to TTISoundChannel, which gets you the _channel field, which is a TISound object. eg:
Local channel:TChannel = CueSound(sound)

Local myISound:TISound = TTISoundChannel(channel)._channel
myISound.SetPan(0.5)

Local sfx:TISoundEffectControl = myISound.GetSoundEffectControl()
sfx.EnableEchoSoundEffect()


etc.

I'll look into exposing the "engine" too.