public class RawSamples
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.nio.ByteOrder |
ORDER |
static int |
SHORT_BYTES |
| Constructor and Description |
|---|
RawSamples(java.io.File in) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static double |
getAmplitude(short[] buffer,
int offset,
int len) |
static long |
getBufferLen(long samples) |
static double |
getDB(double amplitude) |
static double |
getDB(short[] buffer,
int offset,
int len) |
long |
getSamples() |
static long |
getSamples(long len) |
void |
open(int bufReadSize) |
void |
open(long writeOffset) |
void |
open(long offset,
int bufReadSize) |
int |
read(short[] buf) |
void |
trunk(long pos) |
void |
write(java.nio.ByteBuffer bb,
int pos,
int len) |
void |
write(short val) |
void |
write(short[] buf,
int pos,
int len) |
public static final java.nio.ByteOrder ORDER
public static final int SHORT_BYTES
public static long getSamples(long len)
public static long getBufferLen(long samples)
public static double getAmplitude(short[] buffer,
int offset,
int len)
public static double getDB(short[] buffer,
int offset,
int len)
public static double getDB(double amplitude)
public void open(long writeOffset)
public void open(int bufReadSize)
public void open(long offset,
int bufReadSize)
public int read(short[] buf)
public void write(short val)
public void write(short[] buf,
int pos,
int len)
public void write(java.nio.ByteBuffer bb,
int pos,
int len)
public long getSamples()
public void trunk(long pos)
public void close()