Class AudioTrack.CppProxy

java.lang.Object
com.banuba.sdk.scene.AudioTrack.CppProxy
All Implemented Interfaces:
AudioTrack
Enclosing interface:
AudioTrack

public static final class AudioTrack.CppProxy extends Object implements AudioTrack
  • Method Details

    • _djinni_private_destroy

      public void _djinni_private_destroy()
    • finalize

      protected void finalize() throws Throwable
      Overrides:
      finalize in class Object
      Throws:
      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(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 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