Package soundPlayback
Class ClipPlayback
java.lang.Object
soundPlayback.ClipPlayback
Some static functions to playback sound clips.
Should eventually amalgamate this a bit with the main SoundPlayback module
used by the viewer!
- Author:
- doug
-
Method Summary
Modifier and TypeMethodDescriptionstatic ClipPlayback
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.
-
Method Details
-
getInstance
Get the singleton clip playback object.- Returns:
- clip playback class.
-
playClip
public boolean playClip(double[][] clipData, float sampleRate, boolean autoScale) Play one or two channels of audio data back through the default sound card.- Parameters:
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).- Returns:
- true if played OK, false otherwise.
-