public class AudioMix extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AudioMix.Builder
Builder class for
AudioMix objects |
static interface |
AudioMix.RouteFlags |
Modifier and Type | Field and Description |
---|---|
static int |
CALLBACK_FLAG_NOTIFY_ACTIVITY |
static int |
MIX_STATE_DISABLED |
static int |
MIX_STATE_IDLE |
static int |
MIX_STATE_MIXING |
static int |
MIX_TYPE_INVALID |
static int |
MIX_TYPE_PLAYERS |
static int |
MIX_TYPE_RECORDERS |
static int |
ROUTE_FLAG_LOOP_BACK
An audio mix behavior where the output of the mix is rerouted back to the framework and
is accessible for injection or capture through the
AudioTrack and AudioRecord
APIs. |
static int |
ROUTE_FLAG_RENDER
An audio mix behavior where the output of the mix is sent to the original destination of
the audio signal, i.e. an output device for an output mix, or a recording for an input mix.
|
Modifier and Type | Method and Description |
---|---|
int |
getMixState() |
int |
getMixType() |
String |
getRegistration() |
int |
hashCode()
Returns a hash code value for the object.
|
public static final int CALLBACK_FLAG_NOTIFY_ACTIVITY
public static final int ROUTE_FLAG_RENDER
public static final int ROUTE_FLAG_LOOP_BACK
AudioTrack
and AudioRecord
APIs.public static final int MIX_TYPE_INVALID
public static final int MIX_TYPE_PLAYERS
public static final int MIX_TYPE_RECORDERS
public static final int MIX_STATE_DISABLED
public static final int MIX_STATE_IDLE
public static final int MIX_STATE_MIXING
public int getMixState()
MIX_STATE_DISABLED
, MIX_STATE_IDLE
,
MIX_STATE_MIXING
.public int getMixType()
public String getRegistration()
public int hashCode()
Object
HashMap
.
The general contract of hashCode
is:
hashCode
method
must consistently return the same integer, provided no information
used in equals
comparisons on the object is modified.
This integer need not remain consistent from one execution of an
application to another execution of the same application.
equals(Object)
method, then calling the hashCode
method on each of
the two objects must produce the same integer result.
Object.equals(java.lang.Object)
method, then calling the hashCode
method on each of the
two objects must produce distinct integer results. However, the
programmer should be aware that producing distinct integer results
for unequal objects may improve the performance of hash tables.
As much as is reasonably practical, the hashCode method defined by
class Object
does return distinct integers for distinct
objects. (This is typically implemented by converting the internal
address of the object into an integer, but this implementation
technique is not required by the
JavaTM programming language.)
hashCode
in class Object
Object.equals(java.lang.Object)
,
System.identityHashCode(java.lang.Object)