com.sun.j3d.audioengines.javasound
Class JSSample

java.lang.Object
  |
  +--com.sun.j3d.audioengines.Sample
        |
        +--com.sun.j3d.audioengines.javasound.JSSample

public class JSSample
extends Sample

The Sample Class extended for Java Sound Mixer specific audio device.


Field Summary
static int BUFFERED_AUDIO_DATA
          Sound data specified as Buffered is copied by the AudioDevice driver implementation.
static int BUFFERED_MIDI_DATA
           
static int NULL_SAMPLE
           
static int STREAMING_AUDIO_DATA
          Sound data specified as Streaming is not copied by the AudioDevice driver implementation.
static int STREAMING_MIDI_DATA
          MIDI data %%% TODO differentiate between STREAMING and BUFFERED MIDI data right now all MIDI data is buffered
static int UNSUPPORTED_DATA_TYPE
           
 
Fields inherited from class com.sun.j3d.audioengines.Sample
angularDistance, angularFilterCutoff, angularFilterType, angularGain, attenuationDistance, attenuationGain, backAttenuationDistance, backAttenuationGain, debugFlag, direction, dirtyFlags, duration, gain, internalErrors, loopCount, LOW_PASS, mute, NO_FILTERING, NULL_SAMPLE, numberOfChannels, position, soundData, soundType, vworldXfrm, vwXfrmFlag
 
Constructor Summary
JSSample()
           
 
Method Summary
 void clear()
          Clears/re-initialize fields associated with sample data for this sound, and frees any device specific data associated with this sample.
 int getDataType()
           
 boolean getFilterFlag()
           
 float getFilterFreq()
           
 float getGain()
           
 int getReverbIndex()
           
 void render(int dirtyFlags, View view, AuralParameters attribs)
           
 void setDataType(int type)
           
 void setGain(float scaleFactor)
           
 void stop()
           
 
Methods inherited from class com.sun.j3d.audioengines.Sample
debugPrint, debugPrintln, getDirtyFlags, getDuration, getLoopCount, getMuteFlag, getNumberOfChannelsUsed, getSoundData, getSoundType, getStartTime, getVWrldXfrmFlag, setAngularAttenuation, setDirection, setDirtyFlags, setDistanceGain, setLoopCount, setMuteFlag, setPosition, setSoundData, setSoundType, setVWrldXfrmFlag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STREAMING_AUDIO_DATA

public static final int STREAMING_AUDIO_DATA
Sound data specified as Streaming is not copied by the AudioDevice driver implementation. It is up the application to ensure that this data is continuously accessible during sound rendering. Futhermore, full sound spatialization may not be possible, for all AudioDevice implementations on unbuffered sound data.

BUFFERED_AUDIO_DATA

public static final int BUFFERED_AUDIO_DATA
Sound data specified as Buffered is copied by the AudioDevice driver implementation.

STREAMING_MIDI_DATA

public static final int STREAMING_MIDI_DATA
MIDI data %%% TODO differentiate between STREAMING and BUFFERED MIDI data right now all MIDI data is buffered

BUFFERED_MIDI_DATA

public static final int BUFFERED_MIDI_DATA

UNSUPPORTED_DATA_TYPE

public static final int UNSUPPORTED_DATA_TYPE

NULL_SAMPLE

public static final int NULL_SAMPLE
Constructor Detail

JSSample

public JSSample()
Method Detail

setDataType

public void setDataType(int type)

getDataType

public int getDataType()

getGain

public float getGain()

clear

public void clear()
Clears/re-initialize fields associated with sample data for this sound, and frees any device specific data associated with this sample.
Overrides:
clear in class Sample

setGain

public void setGain(float scaleFactor)
Overrides:
setGain in class Sample

render

public void render(int dirtyFlags,
                   View view,
                   AuralParameters attribs)
Overrides:
render in class Sample

stop

public void stop()
Overrides:
stop in class Sample

getReverbIndex

public int getReverbIndex()

getFilterFlag

public boolean getFilterFlag()

getFilterFreq

public float getFilterFreq()