Class RMSoundData
- java.lang.Object
- 
- com.inductiveautomation.rm.graphics.RMSoundData
 
- 
 public class RMSoundData extends java.lang.ObjectManages sound data from sound file bytes.
- 
- 
Field SummaryFields Modifier and Type Field Description static java.util.Map_cachestatic intRMBitRate11kstatic intRMBitRate22kstatic intRMBitRate44kstatic intRMBitRate5kstatic intRMBitRateUndefined
 - 
Constructor SummaryConstructors Constructor Description RMSoundData(java.lang.Object aSource)Creates a new sound data for given source.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intbitRate()Returns the bit rate.static booleancanRead(java.lang.String anExt)Returns whether sound data can read given extension.static voidemptyCache()Clears out the cachebooleanequals(java.lang.Object anObj)Standard equals implementation.intgetBitsPerSample()Returns the bits per sample.byte[]getBytes()Returns the sound data bytes.intgetChannelCount()Returns the channel count.java.lang.StringgetName()Returns the name for this sound.byte[]getSampleBytes()Returns the sample bytes.intgetSampleCount()Returns the sample count.intgetSamplesPerSecond()Returns the samples per second.static RMSoundDatagetSoundData(java.lang.Object aSource)Returns a sound data for a given source.voidreadData()Reads sound format info from sounds data bytes.
 
- 
- 
- 
Field Detail- 
RMBitRate5kpublic static final int RMBitRate5k - See Also:
- Constant Field Values
 
 - 
RMBitRate11kpublic static final int RMBitRate11k - See Also:
- Constant Field Values
 
 - 
RMBitRate22kpublic static final int RMBitRate22k - See Also:
- Constant Field Values
 
 - 
RMBitRate44kpublic static final int RMBitRate44k - See Also:
- Constant Field Values
 
 - 
RMBitRateUndefinedpublic static final int RMBitRateUndefined - See Also:
- Constant Field Values
 
 - 
_cachepublic static java.util.Map _cache 
 
- 
 - 
Method Detail- 
emptyCachepublic static void emptyCache() Clears out the cache
 - 
canReadpublic static boolean canRead(java.lang.String anExt) Returns whether sound data can read given extension.
 - 
getSoundDatapublic static RMSoundData getSoundData(java.lang.Object aSource) Returns a sound data for a given source.
 - 
getNamepublic java.lang.String getName() Returns 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.
 - 
equalspublic boolean equals(java.lang.Object anObj) Standard equals implementation.- Overrides:
- equalsin class- java.lang.Object
 
 
- 
 
-