Class RMSoundData
java.lang.Object
com.inductiveautomation.rm.graphics.RMSoundData
Manages sound data from sound file bytes.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic Mapstatic final intstatic final intstatic final intstatic final intstatic final int
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintbitRate()Returns the bit rate.static booleanReturns whether sound data can read given extension.static voidClears out the cachebooleanStandard equals implementation.intReturns the bits per sample.byte[]getBytes()Returns the sound data bytes.intReturns the channel count.getName()Returns the name for this sound.byte[]Returns the sample bytes.intReturns the sample count.intReturns the samples per second.static RMSoundDatagetSoundData(Object aSource) Returns a sound data for a given source.voidreadData()Reads sound format info from sounds data bytes.
- 
Field Details- 
RMBitRate5kpublic static final int RMBitRate5k- See Also:
 
- 
RMBitRate11kpublic static final int RMBitRate11k- See Also:
 
- 
RMBitRate22kpublic static final int RMBitRate22k- See Also:
 
- 
RMBitRate44kpublic static final int RMBitRate44k- See Also:
 
- 
RMBitRateUndefinedpublic static final int RMBitRateUndefined- See Also:
 
- 
_cache
 
- 
- 
Constructor Details- 
RMSoundDataCreates a new sound data for given source.
 
- 
- 
Method Details- 
emptyCachepublic static void emptyCache()Clears out the cache
- 
canReadReturns whether sound data can read given extension.
- 
getSoundDataReturns a sound data for a given source.
- 
getNameReturns the name for this sound.
- 
getBytespublic byte[] getBytes()Returns the sound data bytes.
- 
getBitsPerSamplepublic int getBitsPerSample()Returns the bits per sample.
- 
getSamplesPerSecondpublic int getSamplesPerSecond()Returns the samples per second.
- 
getChannelCountpublic int getChannelCount()Returns the channel count.
- 
getSampleCountpublic int getSampleCount()Returns the sample count.
- 
getSampleBytespublic byte[] getSampleBytes()Returns the sample bytes.
- 
bitRatepublic int bitRate()Returns the bit rate.
- 
readDatapublic void readData()Reads sound format info from sounds data bytes.
- 
equalsStandard equals implementation.
 
-