public class RMSoundData
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.Map |
_cache |
static int |
RMBitRate11k |
static int |
RMBitRate22k |
static int |
RMBitRate44k |
static int |
RMBitRate5k |
static int |
RMBitRateUndefined |
Constructor and Description |
---|
RMSoundData(java.lang.Object aSource)
Creates a new sound data for given source.
|
Modifier and Type | Method and Description |
---|---|
int |
bitRate()
Returns the bit rate.
|
static boolean |
canRead(java.lang.String anExt)
Returns whether sound data can read given extension.
|
static void |
emptyCache()
Clears out the cache
|
boolean |
equals(java.lang.Object anObj)
Standard equals implementation.
|
int |
getBitsPerSample()
Returns the bits per sample.
|
byte[] |
getBytes()
Returns the sound data bytes.
|
int |
getChannelCount()
Returns the channel count.
|
java.lang.String |
getName()
Returns the name for this sound.
|
byte[] |
getSampleBytes()
Returns the sample bytes.
|
int |
getSampleCount()
Returns the sample count.
|
int |
getSamplesPerSecond()
Returns the samples per second.
|
static RMSoundData |
getSoundData(java.lang.Object aSource)
Returns a sound data for a given source.
|
void |
readData()
Reads sound format info from sounds data bytes.
|
public static final int RMBitRate5k
public static final int RMBitRate11k
public static final int RMBitRate22k
public static final int RMBitRate44k
public static final int RMBitRateUndefined
public static java.util.Map _cache
public RMSoundData(java.lang.Object aSource)
public static void emptyCache()
public static boolean canRead(java.lang.String anExt)
public static RMSoundData getSoundData(java.lang.Object aSource)
public java.lang.String getName()
public byte[] getBytes()
public int getBitsPerSample()
public int getSamplesPerSecond()
public int getChannelCount()
public int getSampleCount()
public byte[] getSampleBytes()
public int bitRate()
public void readData()
public boolean equals(java.lang.Object anObj)
equals
in class java.lang.Object