|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Polyphonic
Polyphonic
describes an object that can have multiple
AudioSignal
s attached to it. It is implemented by
AudioOutput
.
Method Summary | |
---|---|
void |
addSignal(AudioSignal signal)
Adds an signal to the signals chain. |
void |
clearSignals()
Removes all signals from the signal chain. |
void |
disableSignal(AudioSignal signal)
Disables signal if it is in the chain. |
void |
disableSignal(int i)
disables the i th signal in the signal chain. |
void |
enableSignal(AudioSignal signal)
Enables signal if it is in the chain. |
void |
enableSignal(int i)
Enables the i th signal in the signal chain. |
AudioSignal |
getSignal(int i)
Returns the ith signal in the signal chain. |
boolean |
hasSignal(AudioSignal signal)
|
boolean |
isEnabled(AudioSignal signal)
Returns true if signal is in the chain and is also enabled. |
boolean |
isSounding()
Returns true if at least one signal in the chain is enabled. |
void |
noSound()
Disables all signals currently attached to this. |
void |
removeSignal(AudioSignal signal)
Removes signal from the signals chain. |
AudioSignal |
removeSignal(int i)
Removes and returns the ith signal in the
signal chain. |
int |
signalCount()
Returns the number of signals in the chain. |
void |
sound()
Enables all signals currently attached to this. |
Method Detail |
---|
void sound()
enableSignal(int)
.
void noSound()
disableSignal(int)
.
boolean isSounding()
boolean isEnabled(AudioSignal signal)
signal
is in the chain and is also enabled.
signal
- the AudioSignal
to check the status of
signal
is in the chain and is enabledvoid addSignal(AudioSignal signal)
signal
- the AudioSignal
to addAudioSignal getSignal(int i)
ith
signal in the signal chain.
This method is not required to do bounds checking and may throw an
ArrayOutOfBoundsException if i
is larger than
signalCount()
.
i
- which signal to return
boolean hasSignal(AudioSignal signal)
int signalCount()
void enableSignal(int i)
i
th signal in the signal chain.
i
- the index of the signal to enablevoid enableSignal(AudioSignal signal)
signal
if it is in the chain.
signal
- the AudioSignal
to enablevoid disableSignal(int i)
i
th signal in the signal chain.
i
- the index of the signal to disablevoid disableSignal(AudioSignal signal)
signal
if it is in the chain.
signal
- the AudioSignal
to disablevoid removeSignal(AudioSignal signal)
signal
from the signals chain.
signal
- the AudioSignal to removeAudioSignal removeSignal(int i)
ith
signal in the
signal chain.
i
- which signal to remove
AudioSignal
void clearSignals()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |