Class AudioTrack.CppProxy

  • All Implemented Interfaces:
    AudioTrack
    Enclosing interface:
    AudioTrack

    public static final class AudioTrack.CppProxy
    extends java.lang.Object
    implements AudioTrack
    • Method Detail

      • _djinni_private_destroy

        public void _djinni_private_destroy()
      • finalize

        protected void finalize()
                         throws java.lang.Throwable
        Overrides:
        finalize in class java.lang.Object
        Throws:
        java.lang.Throwable
      • setVolume

        public void setVolume​(float volume)
        Description copied from interface: AudioTrack
        set current audio track playback volume.
        Specified by:
        setVolume in interface AudioTrack
        Parameters:
        volume - (float): new audio volume. must be in range [0, 1]
      • getVolume

        public float getVolume()
        Specified by:
        getVolume in interface AudioTrack
        Returns:
        current audio track playback volume (float)
      • load

        public void load​(java.lang.String file)
        Description copied from interface: AudioTrack
        Load audio track file. For now only supports .m4a, .ogg, .mp3 files.
        Specified by:
        load in interface AudioTrack
        Parameters:
        file - (string): absolute path for audio track file.
      • getCurrentTrack

        public java.lang.String getCurrentTrack()
        Specified by:
        getCurrentTrack in interface AudioTrack
        Returns:
        current loaded audio track (string).
      • asMedia

        public Media asMedia()
        Description copied from interface: AudioTrack
        cast audio_track to media parent class (media).
        Specified by:
        asMedia in interface AudioTrack