Package com.banuba.sdk.scene
Interface AudioTrack
-
- All Known Implementing Classes:
AudioTrack.CppProxy
public interface AudioTrack
Class represents audio track interface. Subclass of media
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
AudioTrack.CppProxy
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Media
asMedia()
cast audio_track to media parent class (media).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
-
setVolume
void setVolume(float volume)
set current audio track playback volume.- Parameters:
volume
- (float): new audio volume. must be in range [0, 1]
-
getVolume
float getVolume()
- Returns:
- current audio track playback volume (float)
-
load
void load(@NonNull java.lang.String file)
Load audio track file. For now only supports .m4a, .ogg, .mp3 files.- Parameters:
file
- (string): absolute path for audio track file.
-
getCurrentTrack
@NonNull java.lang.String getCurrentTrack()
- Returns:
- current loaded audio track (string).
-
asMedia
@Nullable Media asMedia()
cast audio_track to media parent class (media).
-
-