Methods Summary |
---|
private static void | errorCallbackFromNative(int error)
if (mErrorCallback != null) {
mErrorCallback.onError(error);
}
|
public static native int | getMode()
|
public static final int | getNumStreamTypes()
return NUM_STREAM_TYPES;
|
public static native int | getRouting(int mode)
|
public static native int | getVolume(int type)
|
public static native boolean | isMicrophoneMuted()
|
public static native boolean | isMusicActive()
|
public static native int | muteMicrophone(boolean on)
|
public static void | setErrorCallback(android.media.AudioSystem$ErrorCallback cb)
/*
* Handles the audio error callback.
*/
/*
* Callback for audio server errors.
* param error error code:
* - AUDIO_STATUS_OK
* - AUDIO_STATUS_SERVER_DIED
* - UDIO_STATUS_ERROR
*/
/*
* Registers a callback to be invoked when an error occurs.
* param cb the callback to run
*/
mErrorCallback = cb;
|
public static native int | setMode(int mode)
|
public static native void | setParameter(java.lang.String key, java.lang.String value)
|
public static native int | setRouting(int mode, int routes, int mask)
|
public static native int | setVolume(int type, int volume)
|