|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AudioUpdateListener
Internal interface used to communicate update notifications for the source data used for audio.
Non Streaming usage of this case will just send an audioUpdate message with a sequence of 0. Only complete updates to this sound will be allowed after that.
Streaming usage will start with a sequence of 1 and continue to feed samples. The source is expected to keep the Sound feed with data. Streamed updates must be of the same format, frequency and cannot be looped.
Streaming updates are not currently supported.
Method Summary | |
---|---|
void |
audioUpdated(int format,
int frequency,
int seq)
Notification that the audio has updated a section of the sample. |
void |
paramsUpdated(boolean loop,
float pitch)
Notification that the audio's parameters have changed. |
Method Detail |
---|
void audioUpdated(int format, int frequency, int seq)
format
- The format of the samplesfrequency
- The frequency of the samplesseq
- The sample seq. Seq 0 means complete file.
Streamed sources start at 1void paramsUpdated(boolean loop, float pitch)
loop
- Whether to loop this samplepitch
- The pitch to play at.
|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |