Versions in this module Expand all Collapse all v0 v0.0.3 Mar 16, 2026 Changes in this version + const AAUDIO_SYSTEM_USAGE_OFFSET + const AAUDIO_UNSPECIFIED + type AAudioStream_errorCallback = capi.AAudioStream_errorCallback + type AUDIO int32 + const AAUDIO_SYSTEM_USAGE_ANNOUNCEMENT + const AAUDIO_SYSTEM_USAGE_EMERGENCY + const AAUDIO_SYSTEM_USAGE_SAFETY + const AAUDIO_SYSTEM_USAGE_VEHICLE_STATUS + const AAUDIO_USAGE_ALARM + const AAUDIO_USAGE_ASSISTANCE_ACCESSIBILITY + const AAUDIO_USAGE_ASSISTANCE_NAVIGATION_GUIDANCE + const AAUDIO_USAGE_ASSISTANCE_SONIFICATION + const AAUDIO_USAGE_ASSISTANT + const AAUDIO_USAGE_GAME + const AAUDIO_USAGE_MEDIA + const AAUDIO_USAGE_NOTIFICATION + const AAUDIO_USAGE_NOTIFICATION_EVENT + const AAUDIO_USAGE_NOTIFICATION_RINGTONE + const AAUDIO_USAGE_VOICE_COMMUNICATION + const AAUDIO_USAGE_VOICE_COMMUNICATION_SIGNALLING + type AUDIO_ALLOW_CAPTURE_BY int32 + const AAUDIO_ALLOW_CAPTURE_BY_ALL + const AAUDIO_ALLOW_CAPTURE_BY_NONE + const AAUDIO_ALLOW_CAPTURE_BY_SYSTEM + type AUDIO_CALLBACK_RESULT int32 + const AAUDIO_CALLBACK_RESULT_CONTINUE + const AAUDIO_CALLBACK_RESULT_STOP + type AUDIO_CHANNEL int32 + const AAUDIO_CHANNEL_2POINT0POINT2 + const AAUDIO_CHANNEL_2POINT1 + const AAUDIO_CHANNEL_2POINT1POINT2 + const AAUDIO_CHANNEL_3POINT0POINT2 + const AAUDIO_CHANNEL_3POINT1 + const AAUDIO_CHANNEL_3POINT1POINT2 + const AAUDIO_CHANNEL_5POINT1 + const AAUDIO_CHANNEL_5POINT1POINT2 + const AAUDIO_CHANNEL_5POINT1POINT4 + const AAUDIO_CHANNEL_5POINT1_SIDE + const AAUDIO_CHANNEL_6POINT1 + const AAUDIO_CHANNEL_7POINT1 + const AAUDIO_CHANNEL_7POINT1POINT2 + const AAUDIO_CHANNEL_7POINT1POINT4 + const AAUDIO_CHANNEL_9POINT1POINT4 + const AAUDIO_CHANNEL_9POINT1POINT6 + const AAUDIO_CHANNEL_BACK_CENTER + const AAUDIO_CHANNEL_BACK_LEFT + const AAUDIO_CHANNEL_BACK_RIGHT + const AAUDIO_CHANNEL_BOTTOM_FRONT_CENTER + const AAUDIO_CHANNEL_BOTTOM_FRONT_LEFT + const AAUDIO_CHANNEL_BOTTOM_FRONT_RIGHT + const AAUDIO_CHANNEL_FRONT_BACK + const AAUDIO_CHANNEL_FRONT_CENTER + const AAUDIO_CHANNEL_FRONT_LEFT + const AAUDIO_CHANNEL_FRONT_LEFT_OF_CENTER + const AAUDIO_CHANNEL_FRONT_RIGHT + const AAUDIO_CHANNEL_FRONT_RIGHT_OF_CENTER + const AAUDIO_CHANNEL_FRONT_WIDE_LEFT + const AAUDIO_CHANNEL_FRONT_WIDE_RIGHT + const AAUDIO_CHANNEL_INVALID + const AAUDIO_CHANNEL_LOW_FREQUENCY + const AAUDIO_CHANNEL_LOW_FREQUENCY_2 + const AAUDIO_CHANNEL_MONO + const AAUDIO_CHANNEL_PENTA + const AAUDIO_CHANNEL_QUAD + const AAUDIO_CHANNEL_QUAD_SIDE + const AAUDIO_CHANNEL_SIDE_LEFT + const AAUDIO_CHANNEL_SIDE_RIGHT + const AAUDIO_CHANNEL_STEREO + const AAUDIO_CHANNEL_SURROUND + const AAUDIO_CHANNEL_TOP_BACK_CENTER + const AAUDIO_CHANNEL_TOP_BACK_LEFT + const AAUDIO_CHANNEL_TOP_BACK_RIGHT + const AAUDIO_CHANNEL_TOP_CENTER + const AAUDIO_CHANNEL_TOP_FRONT_CENTER + const AAUDIO_CHANNEL_TOP_FRONT_LEFT + const AAUDIO_CHANNEL_TOP_FRONT_RIGHT + const AAUDIO_CHANNEL_TOP_SIDE_LEFT + const AAUDIO_CHANNEL_TOP_SIDE_RIGHT + const AAUDIO_CHANNEL_TRI + const AAUDIO_CHANNEL_TRI_BACK + type AUDIO_CONTENT_TYPE int32 + const AAUDIO_CONTENT_TYPE_MOVIE + const AAUDIO_CONTENT_TYPE_MUSIC + const AAUDIO_CONTENT_TYPE_SONIFICATION + const AAUDIO_CONTENT_TYPE_SPEECH + type AUDIO_DIRECTION int32 + const AAUDIO_DIRECTION_INPUT + const AAUDIO_DIRECTION_OUTPUT + type AUDIO_FORMAT int32 + const AAUDIO_FORMAT_IEC61937 + const AAUDIO_FORMAT_INVALID + const AAUDIO_FORMAT_PCM_FLOAT + const AAUDIO_FORMAT_PCM_I16 + const AAUDIO_FORMAT_PCM_I24_PACKED + const AAUDIO_FORMAT_PCM_I32 + const AAUDIO_FORMAT_UNSPECIFIED + type AUDIO_INPUT_PRESET int32 + const AAUDIO_INPUT_PRESET_CAMCORDER + const AAUDIO_INPUT_PRESET_GENERIC + const AAUDIO_INPUT_PRESET_SYSTEM_ECHO_REFERENCE + const AAUDIO_INPUT_PRESET_SYSTEM_HOTWORD + const AAUDIO_INPUT_PRESET_UNPROCESSED + const AAUDIO_INPUT_PRESET_VOICE_COMMUNICATION + const AAUDIO_INPUT_PRESET_VOICE_PERFORMANCE + const AAUDIO_INPUT_PRESET_VOICE_RECOGNITION + type AUDIO_PERFORMANCE_MODE int32 + const AAUDIO_PERFORMANCE_MODE_LOW_LATENCY + const AAUDIO_PERFORMANCE_MODE_NONE + const AAUDIO_PERFORMANCE_MODE_POWER_SAVING + type AUDIO_SESSION_ID int32 + const AAUDIO_SESSION_ID_ALLOCATE + const AAUDIO_SESSION_ID_NONE + type AUDIO_SHARING_MODE int32 + const AAUDIO_SHARING_MODE_EXCLUSIVE + const AAUDIO_SHARING_MODE_SHARED + type AUDIO_SPATIALIZATION_BEHAVIOR int32 + const AAUDIO_SPATIALIZATION_BEHAVIOR_AUTO + const AAUDIO_SPATIALIZATION_BEHAVIOR_NEVER + type AUDIO_STREAM_STATE int32 + const AAUDIO_STREAM_STATE_CLOSED + const AAUDIO_STREAM_STATE_CLOSING + const AAUDIO_STREAM_STATE_DISCONNECTED + const AAUDIO_STREAM_STATE_FLUSHED + const AAUDIO_STREAM_STATE_FLUSHING + const AAUDIO_STREAM_STATE_OPEN + const AAUDIO_STREAM_STATE_PAUSED + const AAUDIO_STREAM_STATE_PAUSING + const AAUDIO_STREAM_STATE_STARTED + const AAUDIO_STREAM_STATE_STARTING + const AAUDIO_STREAM_STATE_STOPPED + const AAUDIO_STREAM_STATE_STOPPING + const AAUDIO_STREAM_STATE_UNINITIALIZED + const AAUDIO_STREAM_STATE_UNKNOWN + type Clockid_t = capi.Clockid_t + type DataCallbackResult int32 + const Continue + const Stop + type Direction int32 + const Input + const Output + func (v Direction) String() string + type Error int32 + const ErrBase + const ErrDisconnected + const ErrIllegalArgument + const ErrInternal + const ErrInvalidFormat + const ErrInvalidHandle + const ErrInvalidRate + const ErrInvalidState + const ErrNoFreeHandles + const ErrNoMemory + const ErrNoService + const ErrNull + const ErrOutOfRange + const ErrTimeout + const ErrUnavailable + const ErrUnimplemented + const ErrWouldBlock + func (e Error) Error() string + type Format int32 + const Iec61937 + const Invalid + const PcmFloat + const PcmI16 + const PcmI24Packed + const PcmI32 + const Unspecified + type PerformanceMode int32 + const LowLatency + const None + const PowerSaving + type SharingMode int32 + const Exclusive + const Shared + type Stream struct + func NewStreamFromPointer(ptr unsafe.Pointer) *Stream + func (h *Stream) ChannelCount() int32 + func (h *Stream) Close() error + func (h *Stream) Flush() error + func (h *Stream) FramesPerBurst() int32 + func (h *Stream) GetBufferCapacityInFrames() error + func (h *Stream) GetBufferSizeInFrames() error + func (h *Stream) GetDeviceID() error + func (h *Stream) GetFramesPerDataCallback() error + func (h *Stream) GetFramesRead() int64 + func (h *Stream) GetFramesWritten() int64 + func (h *Stream) GetHardwareChannelCount() error + func (h *Stream) GetHardwareSampleRate() error + func (h *Stream) GetSamplesPerFrame() error + func (h *Stream) IsContentSpatialized() bool + func (h *Stream) IsPrivacySensitive() bool + func (h *Stream) Pause() error + func (h *Stream) Pointer() unsafe.Pointer + func (h *Stream) Read(buffer []byte, numFrames int32, timeout time.Duration) (int32, error) + func (h *Stream) SampleRate() int32 + func (h *Stream) Start() error + func (h *Stream) State() StreamState + func (h *Stream) Stop() error + func (h *Stream) Write(buffer []byte, numFrames int32, timeout time.Duration) (int32, error) + func (h *Stream) XRunCount() int32 + type StreamBuilder struct + func NewStreamBuilder() (*StreamBuilder, error) + func NewStreamBuilderFromPointer(ptr unsafe.Pointer) *StreamBuilder + func (h *StreamBuilder) Close() error + func (h *StreamBuilder) Open() (*Stream, error) + func (h *StreamBuilder) Pointer() unsafe.Pointer + func (h *StreamBuilder) SetAttributionTag(attributionTag string) + func (h *StreamBuilder) SetBufferCapacityInFrames(numFrames int32) *StreamBuilder + func (h *StreamBuilder) SetChannelCount(channelCount int32) *StreamBuilder + func (h *StreamBuilder) SetDeviceID(deviceID int32) *StreamBuilder + func (h *StreamBuilder) SetDirection(direction Direction) *StreamBuilder + func (h *StreamBuilder) SetFormat(format Format) *StreamBuilder + func (h *StreamBuilder) SetFramesPerDataCallback(numFrames int32) + func (h *StreamBuilder) SetIsContentSpatialized(isSpatialized bool) + func (h *StreamBuilder) SetPackageName(packageName string) + func (h *StreamBuilder) SetPerformanceMode(mode PerformanceMode) *StreamBuilder + func (h *StreamBuilder) SetPrivacySensitive(privacySensitive bool) + func (h *StreamBuilder) SetSampleRate(sampleRate int32) *StreamBuilder + func (h *StreamBuilder) SetSamplesPerFrame(samplesPerFrame int32) + func (h *StreamBuilder) SetSharingMode(sharingMode SharingMode) *StreamBuilder + type StreamState int32 + const Closed + const Closing + const Disconnected + const Flushed + const Flushing + const Open + const Paused + const Pausing + const Started + const Starting + const Stopped + const Stopping + const Uninitialized + const Unknown + func (v StreamState) String() string