StudioSoundStatusCodes

public class StudioSoundStatusCodes extends CommonStatusCodes


Status codes returned by the Studio Sound API.

These constants indicate the success, failure, or cancellation reason for Studio Sound operations. They are delivered via com.google.android.gms.common.api.ApiException when a com.google.android.gms.tasks.Task fails, or passed directly to callback methods such as onError, onCancelled, and onSessionDisconnected.

Summary

Nested types

Annotation for status codes returned by the Studio Sound API.

Constants

static final int
BINDER_DIED = 59008

The IPC binder connection to the background service died unexpectedly.

static final int
CANCELED = 59009

The audio processing operation was canceled.

static final int

The current device hardware or system software does not support the Studio Sound API.

static final int

Initialization of the Studio Sound global background service failed.

static final int

An unrecoverable internal error occurred during audio processing.

static final int

The provided configuration options are invalid or unsupported.

static final int

The maximum number of concurrent active audio processing sessions has been reached.

static final int

The underlying Studio Sound service has been released and is no longer available.

static final int

Initialization of the audio processing session failed.

static final int
SUCCESS = 59007

The operation completed successfully.

Protected constructors

Protected constructor to prevent direct instantiation.

Public methods

static String
getStatusCodeString(int statusCode)

Returns a human-readable string representation of the given status code.

Inherited Constants

From com.google.android.gms.common.api.CommonStatusCodes
static final int
static final int
static final int
static final int
static final int
static final int
ERROR = 13
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int

This field is deprecated.

static final int

This field is deprecated.

static final int
static final int
static final int
static final int
TIMEOUT = 15

Inherited methods

From com.google.android.gms.common.api.CommonStatusCodes
static String
getStatusCodeString(int statusCode)

Constants

BINDER_DIED

public static final int BINDER_DIED = 59008

The IPC binder connection to the background service died unexpectedly.

CANCELED

public static final int CANCELED = 59009

The audio processing operation was canceled.

DEVICE_NOT_SUPPORTED

public static final int DEVICE_NOT_SUPPORTED = 59005

The current device hardware or system software does not support the Studio Sound API.

GLOBAL_INIT_FAILED

public static final int GLOBAL_INIT_FAILED = 59002

Initialization of the Studio Sound global background service failed.

INTERNAL_ERROR

public static final int INTERNAL_ERROR = 59006

An unrecoverable internal error occurred during audio processing.

INVALID_OPTIONS

public static final int INVALID_OPTIONS = 59010

The provided configuration options are invalid or unsupported.

MAX_SESSIONS_REACHED

public static final int MAX_SESSIONS_REACHED = 59001

The maximum number of concurrent active audio processing sessions has been reached.

SERVICE_RELEASED

public static final int SERVICE_RELEASED = 59004

The underlying Studio Sound service has been released and is no longer available.

SESSION_INIT_FAILED

public static final int SESSION_INIT_FAILED = 59003

Initialization of the audio processing session failed.

SUCCESS

public static final int SUCCESS = 59007

The operation completed successfully.

Protected constructors

StudioSoundStatusCodes

protected StudioSoundStatusCodes()

Protected constructor to prevent direct instantiation.

Public methods

getStatusCodeString

public static String getStatusCodeString(int statusCode)

Returns a human-readable string representation of the given status code.

Parameters
int statusCode

the status code returned by the API

Returns
String

the string name of the status code (e.g. "SUCCESS"), or the corresponding CommonStatusCodes string