|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.brackeen.javagamebook.sound.SoundFilter
com.brackeen.javagamebook.sound.FilterSequence
public class FilterSequence
The FilterSequence class is a SoundFilter that combines several SoundFilters at once.
This class wasn't listed in the book ;)
FilteredSoundStream| Field Summary | |
|---|---|
private SoundFilter[] |
filters
|
| Constructor Summary | |
|---|---|
FilterSequence(SoundFilter[] filters)
Creates a new FilterSequence object with the specified array of SoundFilters. |
|
| Method Summary | |
|---|---|
void |
filter(byte[] samples,
int offset,
int length)
Filters the sound simple through each SoundFilter in this FilterSequence. |
int |
getRemainingSize()
Returns the maximum remaining size of all SoundFilters in this FilterSequence. |
void |
reset()
Resets each SoundFilter in this FilterSequence. |
| Methods inherited from class com.brackeen.javagamebook.sound.SoundFilter |
|---|
filter, getSample, setSample |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private SoundFilter[] filters
| Constructor Detail |
|---|
public FilterSequence(SoundFilter[] filters)
| Method Detail |
|---|
public int getRemainingSize()
getRemainingSize in class SoundFilterpublic void reset()
reset in class SoundFilter
public void filter(byte[] samples,
int offset,
int length)
filter in class SoundFilter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||