Package com.banuba.sdk.scene
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 java.lang.Object implements AudioTrack
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.banuba.sdk.scene.AudioTrack
AudioTrack.CppProxy
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
_djinni_private_destroy()
Media
asMedia()
cast audio_track to media parent class (media).protected void
finalize()
java.lang.String
getCurrentTrack()
float
getVolume()
void
load(java.lang.String file)
Load audio track file.void
setVolume(float volume)
set current audio track playback volume.
-
-
-
Method Detail
-
_djinni_private_destroy
public void _djinni_private_destroy()
-
finalize
protected void finalize() throws java.lang.Throwable
- Overrides:
finalize
in classjava.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 interfaceAudioTrack
- Parameters:
volume
- (float): new audio volume. must be in range [0, 1]
-
getVolume
public float getVolume()
- Specified by:
getVolume
in interfaceAudioTrack
- 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 interfaceAudioTrack
- Parameters:
file
- (string): absolute path for audio track file.
-
getCurrentTrack
public java.lang.String getCurrentTrack()
- Specified by:
getCurrentTrack
in interfaceAudioTrack
- 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 interfaceAudioTrack
-
-