|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.jmrit.sound.WavBuffer
public class WavBuffer
Wrap a byte array to provide WAV file functionality
| Constructor Summary | |
|---|---|
WavBuffer(byte[] content)
Create from already existing byte array. |
|
WavBuffer(File file)
Create from contents of file. |
|
| Method Summary | |
|---|---|
int |
findHeader(int i1,
int i2,
int i3,
int i4)
Find a specific header in the .wav fragment |
boolean |
getBigEndian()
|
byte[] |
getByteArray()
|
int |
getChannels()
|
int |
getDataEnd()
Offset to the last data byte in the buffer. |
int |
getDataSize()
Size of the data segment in bytes |
int |
getDataStart()
Offset to the first data byte in the buffer |
float |
getSampleRate()
|
int |
getSampleSizeInBits()
|
boolean |
getSigned()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WavBuffer(byte[] content)
public WavBuffer(File file)
throws IOException
IOException| Method Detail |
|---|
public int findHeader(int i1,
int i2,
int i3,
int i4)
public float getSampleRate()
public int getSampleSizeInBits()
public int getChannels()
public boolean getBigEndian()
public boolean getSigned()
public int getDataStart()
public int getDataSize()
public int getDataEnd()
public byte[] getByteArray()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||