org.mechio.api.audio
Class WavBuffer

java.lang.Object
  extended by 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)
           
 
Method Summary
 byte[] getAudioBytes()
           
 java.lang.String getAudioLocation()
           
 javax.sound.sampled.AudioFormat getFormat()
           
 long getFrameCount()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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.