Class RMSoundData
java.lang.Object
com.inductiveautomation.rm.graphics.RMSoundData
Manages sound data from sound file bytes.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Map
static final int
static final int
static final int
static final int
static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
bitRate()
Returns the bit rate.static boolean
Returns whether sound data can read given extension.static void
Clears out the cacheboolean
Standard equals implementation.int
Returns the bits per sample.byte[]
getBytes()
Returns the sound data bytes.int
Returns the channel count.getName()
Returns the name for this sound.byte[]
Returns the sample bytes.int
Returns the sample count.int
Returns the samples per second.static RMSoundData
getSoundData
(Object aSource) Returns a sound data for a given source.void
readData()
Reads sound format info from sounds data bytes.
-
Field Details
-
RMBitRate5k
public static final int RMBitRate5k- See Also:
-
RMBitRate11k
public static final int RMBitRate11k- See Also:
-
RMBitRate22k
public static final int RMBitRate22k- See Also:
-
RMBitRate44k
public static final int RMBitRate44k- See Also:
-
RMBitRateUndefined
public static final int RMBitRateUndefined- See Also:
-
_cache
-
-
Constructor Details
-
RMSoundData
Creates a new sound data for given source.
-
-
Method Details
-
emptyCache
public static void emptyCache()Clears out the cache -
canRead
Returns whether sound data can read given extension. -
getSoundData
Returns a sound data for a given source. -
getName
Returns the name for this sound. -
getBytes
public byte[] getBytes()Returns the sound data bytes. -
getBitsPerSample
public int getBitsPerSample()Returns the bits per sample. -
getSamplesPerSecond
public int getSamplesPerSecond()Returns the samples per second. -
getChannelCount
public int getChannelCount()Returns the channel count. -
getSampleCount
public int getSampleCount()Returns the sample count. -
getSampleBytes
public byte[] getSampleBytes()Returns the sample bytes. -
bitRate
public int bitRate()Returns the bit rate. -
readData
public void readData()Reads sound format info from sounds data bytes. -
equals
Standard equals implementation.
-