|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Polyphonic describes an object that can have multiple
AudioSignals 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 ith signal in the signal chain. |
void |
enableSignal(AudioSignal signal)
Enables signal if it is in the chain. |
void |
enableSignal(int i)
Enables the ith 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 |
public void sound()
enableSignal(int).
public void noSound()
disableSignal(int).
public boolean isSounding()
public 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 enabledpublic void addSignal(AudioSignal signal)
signal - the AudioSignal to addpublic AudioSignal 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
public boolean hasSignal(AudioSignal signal)
public int signalCount()
public void enableSignal(int i)
ith signal in the signal chain.
i - the index of the signal to enablepublic void enableSignal(AudioSignal signal)
signal if it is in the chain.
signal - the AudioSignal to enablepublic void disableSignal(int i)
ith signal in the signal chain.
i - the index of the signal to disablepublic void disableSignal(AudioSignal signal)
signal if it is in the chain.
signal - the AudioSignal to disablepublic void removeSignal(AudioSignal signal)
signal from the signals chain.
signal - the AudioSignal to removepublic AudioSignal removeSignal(int i)
ith signal in the
signal chain.
i - which signal to remove
AudioSignalpublic void clearSignals()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||