Class RMSoundData

java.lang.Object
com.inductiveautomation.rm.graphics.RMSoundData

public class RMSoundData extends Object
Manages sound data from sound file bytes.
  • Field Details

  • Constructor Details

    • RMSoundData

      public RMSoundData(Object aSource)
      Creates a new sound data for given source.
  • Method Details

    • emptyCache

      public static void emptyCache()
      Clears out the cache
    • canRead

      public static boolean canRead(String anExt)
      Returns whether sound data can read given extension.
    • getSoundData

      public static RMSoundData getSoundData(Object aSource)
      Returns a sound data for a given source.
    • getName

      public String 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

      public boolean equals(Object anObj)
      Standard equals implementation.
      Overrides:
      equals in class Object