public class ClipPlayback
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static ClipPlayback |
getInstance()
Get the singleton clip playback object.
|
boolean |
playClip(double[][] clipData,
float sampleRate,
boolean autoScale)
Play one or two channels of audio data back through the default sound card.
|
public static ClipPlayback getInstance()
public boolean playClip(double[][] clipData, float sampleRate, boolean autoScale)
clipData
- one or two channels of audio data.sampleRate
- playback sample rateautoScale
- if true, will autoscale the data to full range of system (i.e. max val will be 32767).