Help us shape the future of Go! Take the 2026 Go Developer Survey

audio

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2026 License: CC0-1.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TransactionIAudioConfigChangedCallbackOnPlaybackConfigChanged  = binder.FirstCallTransaction + 0
	TransactionIAudioConfigChangedCallbackOnRecordingConfigChanged = binder.FirstCallTransaction + 1
)
View Source
const (
	MethodIAudioConfigChangedCallbackOnPlaybackConfigChanged  = "onPlaybackConfigChanged"
	MethodIAudioConfigChangedCallbackOnRecordingConfigChanged = "onRecordingConfigChanged"
)
View Source
const DescriptorIAudioConfigChangedCallback = "android.companion.virtual.audio.IAudioConfigChangedCallback"
View Source
const DescriptorIAudioRoutingCallback = "android.companion.virtual.audio.IAudioRoutingCallback"
View Source
const (
	MethodIAudioRoutingCallbackOnAppsNeedingAudioRoutingChanged = "onAppsNeedingAudioRoutingChanged"
)
View Source
const (
	TransactionIAudioRoutingCallbackOnAppsNeedingAudioRoutingChanged = binder.FirstCallTransaction + 0
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AudioConfigChangedCallbackProxy

type AudioConfigChangedCallbackProxy struct {
	Remote binder.IBinder
}

func NewAudioConfigChangedCallbackProxy

func NewAudioConfigChangedCallbackProxy(
	remote binder.IBinder,
) *AudioConfigChangedCallbackProxy

func (*AudioConfigChangedCallbackProxy) AsBinder

func (*AudioConfigChangedCallbackProxy) OnPlaybackConfigChanged

func (p *AudioConfigChangedCallbackProxy) OnPlaybackConfigChanged(
	ctx context.Context,
	configs []media.AudioPlaybackConfiguration,
) error

func (*AudioConfigChangedCallbackProxy) OnRecordingConfigChanged

func (p *AudioConfigChangedCallbackProxy) OnRecordingConfigChanged(
	ctx context.Context,
	configs []media.AudioRecordingConfiguration,
) error

type AudioConfigChangedCallbackStub

type AudioConfigChangedCallbackStub struct {
	Impl      IAudioConfigChangedCallback
	Transport binder.VersionAwareTransport
}

AudioConfigChangedCallbackStub dispatches incoming binder transactions to a typed IAudioConfigChangedCallback implementation.

func (*AudioConfigChangedCallbackStub) Descriptor

func (s *AudioConfigChangedCallbackStub) Descriptor() string

func (*AudioConfigChangedCallbackStub) OnTransaction

type AudioRoutingCallbackProxy

type AudioRoutingCallbackProxy struct {
	Remote binder.IBinder
}

func NewAudioRoutingCallbackProxy

func NewAudioRoutingCallbackProxy(
	remote binder.IBinder,
) *AudioRoutingCallbackProxy

func (*AudioRoutingCallbackProxy) AsBinder

func (*AudioRoutingCallbackProxy) OnAppsNeedingAudioRoutingChanged

func (p *AudioRoutingCallbackProxy) OnAppsNeedingAudioRoutingChanged(
	ctx context.Context,
	appUids []int32,
) error

type AudioRoutingCallbackStub

type AudioRoutingCallbackStub struct {
	Impl      IAudioRoutingCallback
	Transport binder.VersionAwareTransport
}

AudioRoutingCallbackStub dispatches incoming binder transactions to a typed IAudioRoutingCallback implementation.

func (*AudioRoutingCallbackStub) Descriptor

func (s *AudioRoutingCallbackStub) Descriptor() string

func (*AudioRoutingCallbackStub) OnTransaction

func (s *AudioRoutingCallbackStub) OnTransaction(
	ctx context.Context,
	code binder.TransactionCode,
	_data *parcel.Parcel,
) (*parcel.Parcel, error)

type IAudioConfigChangedCallback

type IAudioConfigChangedCallback interface {
	AsBinder() binder.IBinder
	OnPlaybackConfigChanged(ctx context.Context, configs []media.AudioPlaybackConfiguration) error
	OnRecordingConfigChanged(ctx context.Context, configs []media.AudioRecordingConfiguration) error
}

func NewAudioConfigChangedCallbackStub

func NewAudioConfigChangedCallbackStub(
	impl IAudioConfigChangedCallbackServer,
) IAudioConfigChangedCallback

NewAudioConfigChangedCallbackStub creates a server-side IAudioConfigChangedCallback wrapping the given server implementation. The returned value satisfies IAudioConfigChangedCallback and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.

type IAudioConfigChangedCallbackServer

type IAudioConfigChangedCallbackServer interface {
	OnPlaybackConfigChanged(ctx context.Context, configs []media.AudioPlaybackConfiguration) error
	OnRecordingConfigChanged(ctx context.Context, configs []media.AudioRecordingConfiguration) error
}

IAudioConfigChangedCallbackServer is the server-side interface that user implementations provide to NewAudioConfigChangedCallbackStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).

type IAudioRoutingCallback

type IAudioRoutingCallback interface {
	AsBinder() binder.IBinder
	OnAppsNeedingAudioRoutingChanged(ctx context.Context, appUids []int32) error
}

func NewAudioRoutingCallbackStub

func NewAudioRoutingCallbackStub(
	impl IAudioRoutingCallbackServer,
) IAudioRoutingCallback

NewAudioRoutingCallbackStub creates a server-side IAudioRoutingCallback wrapping the given server implementation. The returned value satisfies IAudioRoutingCallback and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.

type IAudioRoutingCallbackServer

type IAudioRoutingCallbackServer interface {
	OnAppsNeedingAudioRoutingChanged(ctx context.Context, appUids []int32) error
}

IAudioRoutingCallbackServer is the server-side interface that user implementations provide to NewAudioRoutingCallbackStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL