org.mechio.api.audio
Class WavBuffer
java.lang.Object
org.mechio.api.audio.WavBuffer
public class WavBuffer
- extends java.lang.Object
- Author:
- Matthew Stevenson
|
Constructor Summary |
WavBuffer(byte[] audio,
javax.sound.sampled.AudioFormat format)
|
WavBuffer(java.io.File wavFile)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WavBuffer
public WavBuffer(java.io.File wavFile)
throws java.io.FileNotFoundException,
java.io.IOException,
javax.sound.sampled.LineUnavailableException,
javax.sound.sampled.UnsupportedAudioFileException
- Throws:
java.io.FileNotFoundException
java.io.IOException
javax.sound.sampled.LineUnavailableException
javax.sound.sampled.UnsupportedAudioFileException
WavBuffer
public WavBuffer(byte[] audio,
javax.sound.sampled.AudioFormat format)
getAudioBytes
public byte[] getAudioBytes()
getFrameCount
public long getFrameCount()
getFormat
public javax.sound.sampled.AudioFormat getFormat()
getAudioLocation
public java.lang.String getAudioLocation()
Copyright © 2011-2014. All Rights Reserved.