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.
|
static LocalAudioTrack |
create(android.content.Context context,
boolean enabled,
AudioOptions audioOptions,
String name)
Creates an audio track.
|
static LocalAudioTrack |
create(android.content.Context context,
boolean enabled,
String name)
Creates an audio track.
|
void |
enable(boolean enable)
Sets the state of the local audio track.
|
String |
getName()
Returns the local audio track name.
|
String |
getTrackId()
This audio track id.
|
boolean |
isEnabled()
Check if the local audio track is enabled.
|
void |
release()
Releases native memory owned by audio track.
|
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 static LocalAudioTrack create(android.content.Context context, boolean enabled, String name)
context
- application context.enabled
- initial state of audio track.name
- audio track name.public static LocalAudioTrack create(android.content.Context context, boolean enabled, AudioOptions audioOptions, String name)
context
- application context.enabled
- initial state of audio track.audioOptions
- audio options to be applied to track.name
- audio track name.public boolean isEnabled()
isEnabled
in interface Track
isEnabled
in class AudioTrack
public String getName()
trackId
is returned if no name was specified.getName
in interface Track
getName
in class AudioTrack
public String getTrackId()
public void enable(boolean enable)
enable
- the desired state of the local audio track.public void release()