Banuba SDK
BNBAudioTrack.h
Go to the documentation of this file.
1 // AUTOGENERATED FILE - DO NOT MODIFY!
2 // This file was generated by Djinni from scene.djinni
3 
4 #import <Foundation/Foundation.h>
5 @class BNBMedia;
6 
7 
8 /**Class represents audio track interface. Subclass of media */
9 
10 #ifndef DJINNI_EXPORT
11  #define DJINNI_EXPORT __attribute__((__visibility__("default")))
12 #endif
13 
15 @interface BNBAudioTrack : NSObject
16 
17 /**
18  *set current audio track playback volume.
19  *@param volume (float): new audio volume. must be in range [0, 1]
20  */
21 - (void)setVolume:(float)volume;
22 
23 /**@return current audio track playback volume (float) */
24 - (float)getVolume;
25 
26 /**
27  *Load audio track file. For now only supports .m4a, .ogg, .mp3 files.
28  *@param file (string): absolute path for audio track file.
29  */
30 - (void)load:(nonnull NSString *)file;
31 
32 /**@return current loaded audio track (string). */
33 - (nonnull NSString *)getCurrentTrack;
34 
35 /**cast audio_track to media parent class (media). */
36 - (nullable BNBMedia *)asMedia;
37 
38 @end
BNBAudioTrack
Definition: BNBAudioTrack.h:15
-[BNBAudioTrack getVolume]
float getVolume()
-[BNBAudioTrack asMedia]
nullable BNBMedia * asMedia()
cast audio_track to media parent class (media).
DJINNI_EXPORT
#define DJINNI_EXPORT
Class represents audio track interface.
Definition: BNBAudioTrack.h:11
BNBMedia
Definition: BNBMedia.h:14
-[BNBAudioTrack getCurrentTrack]
nonnull NSString * getCurrentTrack()