Class ShadowSoundPool

    • Constructor Detail

      • ShadowSoundPool

        public ShadowSoundPool()
    • Method Detail

      • play

        @Implementation(maxSdk=22)
        protected int play​(int soundID,
                           float leftVolume,
                           float rightVolume,
                           int priority,
                           int loop,
                           float rate)
      • _play

        @Implementation(minSdk=23)
        protected int _play​(int soundID,
                            float leftVolume,
                            float rightVolume,
                            int priority,
                            int loop,
                            float rate)
      • notifyResourceLoaded

        public void notifyResourceLoaded​(int resId,
                                         boolean success)
        Notify the SoundPool.OnLoadCompleteListener, if present, that the given resource was loaded.
      • wasPathPlayed

        public boolean wasPathPlayed​(String path)
        Returns true if the given path was played.
      • wasResourcePlayed

        public boolean wasResourcePlayed​(int resId)
        Returns true if the given resource was played.
      • getResourcePlaybacks

        public List<ShadowSoundPool.Playback> getResourcePlaybacks​(int resId)
        Return a list of calls to play made for the given resource.
      • clearPlayed

        public void clearPlayed()
        Clears the sounds played by this SoundPool.