quentinc.audio
Class ChannelGroup

java.lang.Object
  extended by quentinc.audio.Channel
      extended by quentinc.audio.ChannelGroup
Direct Known Subclasses:
AudioManager

public class ChannelGroup
extends Channel

A channel group can contain one or more channels. It allows to manage them together more easily.


Method Summary
 void close()
          Close this group and all channels contained in it.
 ChannelGroup createGroup()
          Create a new ChannelGroup which is owned by this group.
 Channel loop(Clip c)
          Loop an audio clip. convenience method for play(c).setLoop(true);
 Channel play(Clip... c)
          Play sequentially each audio clip given one after another.
 Channel play(Clip c)
          Play an audio clip.
 ChannelGroup setPosition(float f)
          Overriden because the playback position cannot be set for multiple channels at once.
 ChannelGroup setPositionInFrames(int n)
          Overriden because the playback position cannot be set for multiple channels at once.
 ChannelGroup setVolume(float f)
          Set the volume of the group.
 
Methods inherited from class quentinc.audio.Channel
addChannelListener, addDSP, get3DPosition, getDuration, getDurationInFrames, getPan, getParentChannel, getPitch, getPosition, getPositionInFrames, getReferenceDistance, getRemainingDuration, getRemainingDurationInFrames, getVolume, getVolumeInDB, isActive, isLoop, isPaused, isVirtual, removeChannelListener, removeDSP, set3DPosition, setLoop, setPan, setPaused, setPitch, setReferenceDistance, setRelative3DPosition, setVolumeInDB, stop
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setVolume

public ChannelGroup setVolume(float f)
Set the volume of the group. The real volume of each individual channel is proportionally changed.

Overrides:
setVolume in class Channel

close

public void close()
Close this group and all channels contained in it.

Overrides:
close in class Channel

play

public Channel play(Clip c)
Play an audio clip.


loop

public Channel loop(Clip c)
Loop an audio clip. convenience method for play(c).setLoop(true);


play

public Channel play(Clip... c)
Play sequentially each audio clip given one after another.


createGroup

public ChannelGroup createGroup()
Create a new ChannelGroup which is owned by this group.


setPosition

public ChannelGroup setPosition(float f)
Overriden because the playback position cannot be set for multiple channels at once.

Overrides:
setPosition in class Channel

setPositionInFrames

public ChannelGroup setPositionInFrames(int n)
Overriden because the playback position cannot be set for multiple channels at once.

Overrides:
setPositionInFrames in class Channel