net.sf.fmj.media.multiplexer.audio
Class CsvAudioMux
java.lang.Object
net.sf.fmj.media.AbstractControls
net.sf.fmj.media.AbstractPlugIn
net.sf.fmj.media.AbstractMultiplexer
net.sf.fmj.media.multiplexer.AbstractInputStreamMux
net.sf.fmj.media.multiplexer.audio.CsvAudioMux
- All Implemented Interfaces:
- Controls, Multiplexer, PlugIn
public class CsvAudioMux
- extends AbstractInputStreamMux
Experimental mux for dumping out audio to a delimited text file. Useful for debugging endian/sign/conversion problems.
- Author:
- Ken Larson
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CsvAudioMux
public CsvAudioMux()
getSupportedInputFormats
public Format[] getSupportedInputFormats()
- Specified by:
getSupportedInputFormats
in interface Multiplexer
- Specified by:
getSupportedInputFormats
in class AbstractInputStreamMux
setInputFormat
public Format setInputFormat(Format format,
int trackID)
- Specified by:
setInputFormat
in interface Multiplexer
- Overrides:
setInputFormat
in class AbstractMultiplexer
open
public void open()
throws ResourceUnavailableException
- Specified by:
open
in interface PlugIn
- Overrides:
open
in class AbstractInputStreamMux
- Throws:
ResourceUnavailableException
close
public void close()
- Specified by:
close
in interface PlugIn
- Overrides:
close
in class AbstractInputStreamMux
doProcess
protected void doProcess(Buffer buffer,
int trackID,
java.io.OutputStream os)
throws java.io.IOException
- Overrides:
doProcess
in class AbstractInputStreamMux
- Throws:
java.io.IOException
audioBufferToStream
public static void audioBufferToStream(AudioFormat f,
Buffer buffer,
java.io.OutputStream os)
throws java.io.IOException
- Throws:
java.io.IOException