Aviatrix3D
2.1.0

org.j3d.aviatrix3d.iutil
Interface AudioUpdateListener

All Known Implementing Classes:
BackgroundSound, ConeSound, PointSound, Sound

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.

Version:
$Revision: 1.3 $
Author:
Alan Hudson

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

audioUpdated

void audioUpdated(int format,
                  int frequency,
                  int seq)
Notification that the audio has updated a section of the sample. This is generic for all audio sources correctly.

Parameters:
format - The format of the samples
frequency - The frequency of the samples
seq - The sample seq. Seq 0 means complete file. Streamed sources start at 1

paramsUpdated

void paramsUpdated(boolean loop,
                   float pitch)
Notification that the audio's parameters have changed.

Parameters:
loop - Whether to loop this sample
pitch - The pitch to play at.

Aviatrix3D
2.1.0

Latest Info from http://aviatrix3d.j3d.org/
Copyright © 2003 - 2009 j3d.org