org.robokind.api.audio
Class WavBuffer

java.lang.Object
  extended by org.robokind.api.audio.WavBuffer

public class WavBuffer
extends Object

Author:
Matthew Stevenson

Constructor Summary
WavBuffer(byte[] audio, AudioFormat format)
           
WavBuffer(File wavFile)
           
 
Method Summary
 byte[] getAudioBytes()
           
 String getAudioLocation()
           
 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(File wavFile)
          throws FileNotFoundException,
                 IOException,
                 LineUnavailableException,
                 UnsupportedAudioFileException
Throws:
FileNotFoundException
IOException
LineUnavailableException
UnsupportedAudioFileException

WavBuffer

public WavBuffer(byte[] audio,
                 AudioFormat format)
Method Detail

getAudioBytes

public byte[] getAudioBytes()

getFrameCount

public long getFrameCount()

getFormat

public AudioFormat getFormat()

getAudioLocation

public String getAudioLocation()


Copyright © 2011-2012. All Rights Reserved.