Banuba SDK
Instance Methods | List of all members
BNBAudioTrack Class Reference

#import <BNBAudioTrack.h>

Inheritance diagram for BNBAudioTrack:

Instance Methods

(void) - setVolume:
 set current audio track playback volume. More...
 
(float) - getVolume
 
(void) - load:
 Load audio track file. More...
 
(nonnull NSString *) - getCurrentTrack
 
(nullable BNBMedia *) - asMedia
 cast audio_track to media parent class (media). More...
 

Detailed Description

Definition at line 15 of file BNBAudioTrack.h.

Method Documentation

◆ asMedia

- (nullable BNBMedia *) asMedia

cast audio_track to media parent class (media).

◆ getCurrentTrack

- (nonnull NSString *) getCurrentTrack
Returns
current loaded audio track (string).

◆ getVolume

- (float) getVolume
Returns
current audio track playback volume (float)

◆ load:

- (void) load: (nonnull NSString *)  file

Load audio track file.

For now only supports .m4a, .ogg, .mp3 files.

Parameters
file(string): absolute path for audio track file.

◆ setVolume:

- (void) setVolume: (float)  volume

set current audio track playback volume.

Parameters
volume(float): new audio volume. must be in range [0, 1]

The documentation for this class was generated from the following file: