Package com.banuba.sdk.scene
Class AudioTrack.CppProxy
java.lang.Object
com.banuba.sdk.scene.AudioTrack.CppProxy
- All Implemented Interfaces:
AudioTrack
- Enclosing interface:
- AudioTrack
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.banuba.sdk.scene.AudioTrack
AudioTrack.CppProxy
-
Method Summary
-
Method Details
-
_djinni_private_destroy
public void _djinni_private_destroy() -
finalize
-
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
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
- Specified by:
getCurrentTrack
in interfaceAudioTrack
- Returns:
- current loaded audio track (string).
-
asMedia
Description copied from interface:AudioTrack
cast audio_track to media parent class (media).- Specified by:
asMedia
in interfaceAudioTrack
-