com.qualcomm.ftccommon

## Class SoundPlayer.LoadedSoundCache

- java.lang.Object
- - com.qualcomm.ftccommon.SoundPlayer.LoadedSoundCache

- Enclosing class:
    SoundPlayer

      protected class SoundPlayer.LoadedSoundCache
      extends java.lang.Object

  `SoundPlayer.LoadedSoundCache` keeps track of loaded sounds, mapping sound resource id to loaded sound id. It keeps track of which sounds have been recently used, and unloads neglected songs when a configured capacity of loaded sounds has been reached.

- - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `SoundPlayer.SoundInfo` | `getFile(java.io.File file)`
    `SoundPlayer.SoundInfo` | `getHash(java.lang.String hashString)`
    `SoundPlayer.SoundInfo` | `getResource(int resourceId)`
    `void` | `noteSoundUsage(SoundPlayer.SoundInfo info)` update the fact that this sound has been just used, again
    `void` | `putFile(java.io.File file, SoundPlayer.SoundInfo info)`
    `void` | `putResource(int resourceId, SoundPlayer.SoundInfo info)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### getResource

          public SoundPlayer.SoundInfo getResource(int resourceId)

    - #### getFile

          public SoundPlayer.SoundInfo getFile(java.io.File file)

    - #### getHash

          public SoundPlayer.SoundInfo getHash(java.lang.String hashString)

    - #### putResource

          public void putResource(int resourceId,
                                  SoundPlayer.SoundInfo info)

    - #### putFile

          public void putFile(java.io.File file,
                              SoundPlayer.SoundInfo info)

    - #### noteSoundUsage

          public void noteSoundUsage(SoundPlayer.SoundInfo info)

      update the fact that this sound has been just used, again