com.sun.j3d.audioengines.javasound
Class JSClip

java.lang.Object
  extended by com.sun.j3d.audioengines.javasound.JSChannel
      extended by com.sun.j3d.audioengines.javasound.JSClip

 class JSClip
extends JSChannel

The JSClip Class defines an audio output methods that call JavaSound Hae mixer methods.


Field Summary
(package private)  javax.sound.sampled.Clip line
           
(package private)  javax.sound.sampled.Clip otherChannel
           
(package private)  javax.sound.sampled.Clip reverbChannel
           
 
Fields inherited from class com.sun.j3d.audioengines.javasound.JSChannel
ais, audioFormat, debugFlag, inputStream, panLeft, panRight, rateInHz, startTime, url
 
Constructor Summary
JSClip()
           
 
Method Summary
(package private)  javax.sound.sampled.DataLine initDataLine(javax.sound.sampled.AudioInputStream ais)
          Create data line for outputting audio input stream.
(package private)  boolean startSample(int loopCount, float gain, int delay)
           
(package private)  boolean startSamples(int loopCount, float leftGain, float rightGain, int leftDelay, int rightDelay)
          Start TWO Samples used when two samples are associated with a single Point or Cone sound.
(package private)  int stopSample()
           
(package private)  int stopSamples()
           
 void update(javax.sound.sampled.LineEvent event)
           
 
Methods inherited from class com.sun.j3d.audioengines.javasound.JSChannel
debugPrint, debugPrintln, getDuration, initAudioInputStream, initAudioInputStream, initialize, pauseSample, pauseSamples, reinitAudioInputStream, reinitAudioInputStream, scaleSampleRate, setSampleDelay, setSampleFiltering, setSampleGain, setSampleRate, setSampleReverb, unpauseSample, unpauseSamples
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

line

javax.sound.sampled.Clip line

otherChannel

javax.sound.sampled.Clip otherChannel

reverbChannel

javax.sound.sampled.Clip reverbChannel
Constructor Detail

JSClip

JSClip()
Method Detail

initDataLine

javax.sound.sampled.DataLine initDataLine(javax.sound.sampled.AudioInputStream ais)
Create data line for outputting audio input stream. for a stream that is a sourceDataline

Overrides:
initDataLine in class JSChannel
Returns:
true is successful in initiallizing DataLine

startSamples

boolean startSamples(int loopCount,
                     float leftGain,
                     float rightGain,
                     int leftDelay,
                     int rightDelay)
Start TWO Samples used when two samples are associated with a single Point or Cone sound. This method handles starting both samples, rather than forcing the caller to make two calls to startSample, so that the actual Java Sound start methods called are as immediate (without delay between as possible.

Overrides:
startSamples in class JSChannel

startSample

boolean startSample(int loopCount,
                    float gain,
                    int delay)
Overrides:
startSample in class JSChannel

stopSample

int stopSample()
Overrides:
stopSample in class JSChannel

stopSamples

int stopSamples()
Overrides:
stopSamples in class JSChannel

update

public void update(javax.sound.sampled.LineEvent event)


Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.