Sound commands

Blitz3D Forums/Blitz3D Beginners Area/Sound commands

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.

1. All sounds played are assigned their own channels. The Channel commands only affect the channel specified. IIRC, the Sound commands affect all sounds (don't quote me on this though...).

2. Not to my knowledge. But if you know what it is beforehand, you can certainly alter it.

3. SoundVolume

4. AFAIK, you can't. I think the intent was to set up a sound as looping or non-looping indefinitely. If you are attempting to only loop a sound a finite amount of times, then do something like this:
sound = LoadSound("asound.wav")
channel = PlaySound sound
Repeat
  If Not ChannelPlaying(channel)
    channel = PlaySound sound
    loops = loops + 1
  EndIf
Until loops = 5