AudioResult

class carb.audio.AudioResult

Bases: pybind11_object

Possible result codes for audio operations.

Members:

OK : The operation either completed successfully or was successfully queued to complete asynchronously.

DEVICE_DISCONNECTED : The device that was in use was physically disconnected from the system. There is no possibility of using it again until it is reconnected to the system.

DEVICE_LOST : The device that was in use lost its connection to the software. This mostly occurs on Linux under the ALSA backend.

DEVICE_NOT_OPEN : The requested device has not been opened yet but the requested operation requires that it be open.

DEVICE_OPEN : The requested device has been opened but the requested operation requires that it not be open.

OUT_OF_RANGE : The requested device index or parameter value was outside of the accepted range.

TRY_AGAIN : The operation failed on this attempt but may succeed if tried again at a later time. This is often related to hardware resources that may be busy at the time.

OUT_OF_MEMORY : The requested amount of memory could not be allocated for the current operation.

INVALID_PARAMETER : One or more invalid parameters was passed in to a function.

NOT_ALLOWED : The requested operation is not allowed at this time.

NOT_FOUND : The requested resource could not be found or is not known.

IO_ERROR : A hardware I/O error occurred during the operation.

INVALID_FORMAT : An invalid sound format was requested for an audio capture or data seek operation.

NOT_SUPPORTED : The requested operation, data format, or feature is not supported.

Methods

__init__(self, value)

Attributes

DEVICE_DISCONNECTED

DEVICE_LOST

DEVICE_NOT_OPEN

DEVICE_OPEN

INVALID_FORMAT

INVALID_PARAMETER

IO_ERROR

NOT_ALLOWED

NOT_FOUND

NOT_SUPPORTED

OK

OUT_OF_MEMORY

OUT_OF_RANGE

TRY_AGAIN

name

value

__init__(self: carb.audio._audio.AudioResult, value: int) None
property name