|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.beadsproject.beads.core.Bead net.beadsproject.beads.events.AudioContextStopTrigger
public class AudioContextStopTrigger
Use AudioContextStopTrigger to cause the AudioContext
to stop in response to a given event.
AudioContext
to stop when a sample has finished playing:
AudioContext context = new AudioContext();
SamplePlayer samplePlayer = new SamplePlayer(SampleManager.sample(pathToAudioFile));
context.out.addInput(samplePlayer);
samplePlayer.setKillListener(new AudioContextStopTrigger(context));
context.start();
Constructor Summary | |
---|---|
AudioContextStopTrigger(AudioContext ac)
Creates a new audio context stop trigger. |
Method Summary | |
---|---|
void |
kill()
Stops this Bead, and flags it as deleted. |
void |
messageReceived(Bead message)
Responds to an incoming message. |
Methods inherited from class net.beadsproject.beads.core.Bead |
---|
getKillListener, getName, isDeleted, isPaused, message, pause, setKillListener, setName, start, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AudioContextStopTrigger(AudioContext ac)
ac
- the AudioContext.Method Detail |
---|
public void messageReceived(Bead message)
Bead
messageReceived
in class Bead
message
- the messagepublic void kill()
Bead
BeadArray
s.
kill
in class Bead
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |