javazoom.jl.converter

Class WaveFile


public class WaveFile
extends RiffFile

Class allowing WaveFormat Access

Nested Class Summary

class
WaveFile.WaveFileSample

Field Summary

static int
MAX_WAVE_CHANNELS

Fields inherited from class javazoom.jl.converter.RiffFile

DDC_FAILURE, DDC_FILE_ERROR, DDC_INVALID_CALL, DDC_INVALID_FILE, DDC_OUT_OF_MEMORY, DDC_SUCCESS, DDC_USER_ABORT, RFM_READ, RFM_UNKNOWN, RFM_WRITE, file, fmode

Constructor Summary

WaveFile()
Constructs a new WaveFile instance.

Method Summary

short
BitsPerSample()
int
Close()
long
CurrentFilePosition()
short
NumChannels()
int
NumSamples()
int
OpenForWrite(String Filename, int SamplingRate, short BitsPerSample, short NumChannels)
int
OpenForWrite(String Filename, WaveFile OtherWave)
Open for write using another wave file's parameters...
int
SamplingRate()
int
WriteData(short[] data, int numData)
Write 16-bit audio

Methods inherited from class javazoom.jl.converter.RiffFile

Backpatch, Backpatch, Close, CurrentFileMode, CurrentFilePosition, Expect, FourCC, Open, Read, Seek, Write, Write, Write, Write, Write

Field Details

MAX_WAVE_CHANNELS

public static final int MAX_WAVE_CHANNELS
Field Value:
2

Constructor Details

WaveFile

public WaveFile()
Constructs a new WaveFile instance.

Method Details

BitsPerSample

public short BitsPerSample()

Close

public int Close()
Overrides:
Close in interface RiffFile

CurrentFilePosition

public long CurrentFilePosition()
Overrides:
CurrentFilePosition in interface RiffFile

NumChannels

public short NumChannels()

NumSamples

public int NumSamples()

OpenForWrite

public int OpenForWrite(String Filename,
                        int SamplingRate,
                        short BitsPerSample,
                        short NumChannels)

OpenForWrite

public int OpenForWrite(String Filename,
                        WaveFile OtherWave)
Open for write using another wave file's parameters...

SamplingRate

public int SamplingRate()

WriteData

public int WriteData(short[] data,
                     int numData)
Write 16-bit audio

JavaZOOM 1999-2005