public class LocalAudioTrack extends AudioTrack
Modifier and Type | Method and Description |
---|---|
static LocalAudioTrack |
create(android.content.Context context,
boolean enabled)
Creates an audio track.
|
static LocalAudioTrack |
create(android.content.Context context,
boolean enabled,
AudioOptions audioOptions)
Creates an audio track.
|
void |
enable(boolean enable)
Sets the state of the local audio track.
|
boolean |
isEnabled()
Check if the local audio track is enabled.
|
void |
release()
Releases native memory owned by audio track.
|
getTrackId
public static LocalAudioTrack create(android.content.Context context, boolean enabled)
context
- application context.enabled
- initial state of audio track.public static LocalAudioTrack create(android.content.Context context, boolean enabled, AudioOptions audioOptions)
context
- applicatoin context.enabled
- initial state of audio track.audioOptions
- audio options to be applied to the track.public boolean isEnabled()
isEnabled
in class AudioTrack
public void enable(boolean enable)
enable
- the desired state of the local audio track.public void release()
1.3.14