audiomanager

package
v0.0.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client wraps the gRPC AudioManagerService client.

func NewClient

func NewClient(cc grpc.ClientConnInterface) *Client

NewClient creates a new audiomanager client.

func (*Client) AbandonAudioFocus

func (c *Client) AbandonAudioFocus(ctx context.Context, arg0 int64) (int32, error)

AbandonAudioFocus calls the AbandonAudioFocus RPC.

func (*Client) AbandonAudioFocusRequestOp

func (c *Client) AbandonAudioFocusRequestOp(ctx context.Context, arg0 int64) (int32, error)

AbandonAudioFocusRequestOp calls the AbandonAudioFocusRequestOp RPC.

func (*Client) AddOnCommunicationDeviceChangedListener

func (c *Client) AddOnCommunicationDeviceChangedListener(ctx context.Context, arg0 int64, arg1 int64) error

AddOnCommunicationDeviceChangedListener calls the AddOnCommunicationDeviceChangedListener RPC.

func (*Client) AddOnModeChangedListener

func (c *Client) AddOnModeChangedListener(ctx context.Context, arg0 int64, arg1 int64) error

AddOnModeChangedListener calls the AddOnModeChangedListener RPC.

func (*Client) AddOnPreferredMixerAttributesChangedListener

func (c *Client) AddOnPreferredMixerAttributesChangedListener(ctx context.Context, arg0 int64, arg1 int64) error

AddOnPreferredMixerAttributesChangedListener calls the AddOnPreferredMixerAttributesChangedListener RPC.

func (*Client) AdjustStreamVolume

func (c *Client) AdjustStreamVolume(ctx context.Context, arg0 int32, arg1 int32, arg2 int32) error

AdjustStreamVolume calls the AdjustStreamVolume RPC.

func (*Client) AdjustSuggestedStreamVolume

func (c *Client) AdjustSuggestedStreamVolume(ctx context.Context, arg0 int32, arg1 int32, arg2 int32) error

AdjustSuggestedStreamVolume calls the AdjustSuggestedStreamVolume RPC.

func (*Client) AdjustVolume

func (c *Client) AdjustVolume(ctx context.Context, arg0 int32, arg1 int32) error

AdjustVolume calls the AdjustVolume RPC.

func (*Client) AdjustVolumeGroupVolume

func (c *Client) AdjustVolumeGroupVolume(ctx context.Context, arg0 int32, arg1 int32, arg2 int32) error

AdjustVolumeGroupVolume calls the AdjustVolumeGroupVolume RPC.

func (*Client) ClearCommunicationDevice

func (c *Client) ClearCommunicationDevice(ctx context.Context) error

ClearCommunicationDevice calls the ClearCommunicationDevice RPC.

func (*Client) ClearPreferredMixerAttributes

func (c *Client) ClearPreferredMixerAttributes(ctx context.Context, arg0 int64, arg1 int64) (bool, error)

ClearPreferredMixerAttributes calls the ClearPreferredMixerAttributes RPC.

func (*Client) DispatchMediaKeyEvent

func (c *Client) DispatchMediaKeyEvent(ctx context.Context, arg0 int64) error

DispatchMediaKeyEvent calls the DispatchMediaKeyEvent RPC.

func (*Client) GenerateAudioSessionId

func (c *Client) GenerateAudioSessionId(ctx context.Context) (int32, error)

GenerateAudioSessionId calls the GenerateAudioSessionId RPC.

func (*Client) GetActivePlaybackConfigurations

func (c *Client) GetActivePlaybackConfigurations(ctx context.Context) (int64, error)

GetActivePlaybackConfigurations calls the GetActivePlaybackConfigurations RPC.

func (*Client) GetActiveRecordingConfigurations

func (c *Client) GetActiveRecordingConfigurations(ctx context.Context) (int64, error)

GetActiveRecordingConfigurations calls the GetActiveRecordingConfigurations RPC.

func (*Client) GetAllowedCapturePolicy

func (c *Client) GetAllowedCapturePolicy(ctx context.Context) (int32, error)

GetAllowedCapturePolicy calls the GetAllowedCapturePolicy RPC.

func (*Client) GetAudioDevicesForAttributes

func (c *Client) GetAudioDevicesForAttributes(ctx context.Context, arg0 int64) (int64, error)

GetAudioDevicesForAttributes calls the GetAudioDevicesForAttributes RPC.

func (*Client) GetAudioHwSyncForSession

func (c *Client) GetAudioHwSyncForSession(ctx context.Context, arg0 int32) (int32, error)

GetAudioHwSyncForSession calls the GetAudioHwSyncForSession RPC.

func (*Client) GetAvailableCommunicationDevices

func (c *Client) GetAvailableCommunicationDevices(ctx context.Context) (int64, error)

GetAvailableCommunicationDevices calls the GetAvailableCommunicationDevices RPC.

func (*Client) GetCommunicationDevice

func (c *Client) GetCommunicationDevice(ctx context.Context) (int64, error)

GetCommunicationDevice calls the GetCommunicationDevice RPC.

func (*Client) GetDevices

func (c *Client) GetDevices(ctx context.Context, arg0 int32) (int64, error)

GetDevices calls the GetDevices RPC.

func (*Client) GetDirectPlaybackSupport

func (c *Client) GetDirectPlaybackSupport(ctx context.Context, arg0 int64, arg1 int64) (int32, error)

GetDirectPlaybackSupport calls the GetDirectPlaybackSupport RPC.

func (*Client) GetDirectProfilesForAttributes

func (c *Client) GetDirectProfilesForAttributes(ctx context.Context, arg0 int64) (int64, error)

GetDirectProfilesForAttributes calls the GetDirectProfilesForAttributes RPC.

func (*Client) GetEncodedSurroundMode

func (c *Client) GetEncodedSurroundMode(ctx context.Context) (int32, error)

GetEncodedSurroundMode calls the GetEncodedSurroundMode RPC.

func (*Client) GetMicrophones

func (c *Client) GetMicrophones(ctx context.Context) (int64, error)

GetMicrophones calls the GetMicrophones RPC.

func (*Client) GetMode

func (c *Client) GetMode(ctx context.Context) (int32, error)

GetMode calls the GetMode RPC.

func (*Client) GetParameters

func (c *Client) GetParameters(ctx context.Context, arg0 string) (string, error)

GetParameters calls the GetParameters RPC.

func (*Client) GetPlaybackOffloadSupport

func (c *Client) GetPlaybackOffloadSupport(ctx context.Context, arg0 int64, arg1 int64) (int32, error)

GetPlaybackOffloadSupport calls the GetPlaybackOffloadSupport RPC.

func (*Client) GetPreferredMixerAttributes

func (c *Client) GetPreferredMixerAttributes(ctx context.Context, arg0 int64, arg1 int64) (int64, error)

GetPreferredMixerAttributes calls the GetPreferredMixerAttributes RPC.

func (*Client) GetProperty

func (c *Client) GetProperty(ctx context.Context, arg0 string) (string, error)

GetProperty calls the GetProperty RPC.

func (*Client) GetRingerMode

func (c *Client) GetRingerMode(ctx context.Context) (int32, error)

GetRingerMode calls the GetRingerMode RPC.

func (*Client) GetRouting

func (c *Client) GetRouting(ctx context.Context, arg0 int32) (int32, error)

GetRouting calls the GetRouting RPC.

func (*Client) GetSpatializer

func (c *Client) GetSpatializer(ctx context.Context) (int64, error)

GetSpatializer calls the GetSpatializer RPC.

func (*Client) GetStreamMaxVolume

func (c *Client) GetStreamMaxVolume(ctx context.Context, arg0 int32) (int32, error)

GetStreamMaxVolume calls the GetStreamMaxVolume RPC.

func (*Client) GetStreamMinVolume

func (c *Client) GetStreamMinVolume(ctx context.Context, arg0 int32) (int32, error)

GetStreamMinVolume calls the GetStreamMinVolume RPC.

func (*Client) GetStreamVolume

func (c *Client) GetStreamVolume(ctx context.Context, arg0 int32) (int32, error)

GetStreamVolume calls the GetStreamVolume RPC.

func (*Client) GetStreamVolumeDb

func (c *Client) GetStreamVolumeDb(ctx context.Context, arg0 int32, arg1 int32, arg2 int32) (float32, error)

GetStreamVolumeDb calls the GetStreamVolumeDb RPC.

func (*Client) GetSupportedDeviceTypes

func (c *Client) GetSupportedDeviceTypes(ctx context.Context, arg0 int32) (int64, error)

GetSupportedDeviceTypes calls the GetSupportedDeviceTypes RPC.

func (*Client) GetSupportedMixerAttributes

func (c *Client) GetSupportedMixerAttributes(ctx context.Context, arg0 int64) (int64, error)

GetSupportedMixerAttributes calls the GetSupportedMixerAttributes RPC.

func (*Client) GetVibrateSetting

func (c *Client) GetVibrateSetting(ctx context.Context, arg0 int32) (int32, error)

GetVibrateSetting calls the GetVibrateSetting RPC.

func (*Client) GetVolumeGroupIdForAttributes

func (c *Client) GetVolumeGroupIdForAttributes(ctx context.Context, arg0 int64) (int32, error)

GetVolumeGroupIdForAttributes calls the GetVolumeGroupIdForAttributes RPC.

func (*Client) IsBluetoothA2DpOn

func (c *Client) IsBluetoothA2DpOn(ctx context.Context) (bool, error)

IsBluetoothA2DpOn calls the IsBluetoothA2DpOn RPC.

func (*Client) IsBluetoothScoAvailableOffCall

func (c *Client) IsBluetoothScoAvailableOffCall(ctx context.Context) (bool, error)

IsBluetoothScoAvailableOffCall calls the IsBluetoothScoAvailableOffCall RPC.

func (*Client) IsBluetoothScoOn

func (c *Client) IsBluetoothScoOn(ctx context.Context) (bool, error)

IsBluetoothScoOn calls the IsBluetoothScoOn RPC.

func (*Client) IsCallScreeningModeSupported

func (c *Client) IsCallScreeningModeSupported(ctx context.Context) (bool, error)

IsCallScreeningModeSupported calls the IsCallScreeningModeSupported RPC.

func (*Client) IsHapticPlaybackSupported

func (c *Client) IsHapticPlaybackSupported(ctx context.Context) (bool, error)

IsHapticPlaybackSupported calls the IsHapticPlaybackSupported RPC.

func (*Client) IsMicrophoneMute

func (c *Client) IsMicrophoneMute(ctx context.Context) (bool, error)

IsMicrophoneMute calls the IsMicrophoneMute RPC.

func (*Client) IsMusicActive

func (c *Client) IsMusicActive(ctx context.Context) (bool, error)

IsMusicActive calls the IsMusicActive RPC.

func (*Client) IsOffloadedPlaybackSupported

func (c *Client) IsOffloadedPlaybackSupported(ctx context.Context, arg0 int64, arg1 int64) (bool, error)

IsOffloadedPlaybackSupported calls the IsOffloadedPlaybackSupported RPC.

func (*Client) IsRampingRingerEnabled

func (c *Client) IsRampingRingerEnabled(ctx context.Context) (bool, error)

IsRampingRingerEnabled calls the IsRampingRingerEnabled RPC.

func (*Client) IsSpeakerphoneOn

func (c *Client) IsSpeakerphoneOn(ctx context.Context) (bool, error)

IsSpeakerphoneOn calls the IsSpeakerphoneOn RPC.

func (*Client) IsStreamMute

func (c *Client) IsStreamMute(ctx context.Context, arg0 int32) (bool, error)

IsStreamMute calls the IsStreamMute RPC.

func (*Client) IsSurroundFormatEnabled

func (c *Client) IsSurroundFormatEnabled(ctx context.Context, arg0 int32) (bool, error)

IsSurroundFormatEnabled calls the IsSurroundFormatEnabled RPC.

func (*Client) IsVolumeFixed

func (c *Client) IsVolumeFixed(ctx context.Context) (bool, error)

IsVolumeFixed calls the IsVolumeFixed RPC.

func (*Client) IsVolumeGroupMuted

func (c *Client) IsVolumeGroupMuted(ctx context.Context, arg0 int32) (bool, error)

IsVolumeGroupMuted calls the IsVolumeGroupMuted RPC.

func (*Client) IsWiredHeadsetOn

func (c *Client) IsWiredHeadsetOn(ctx context.Context) (bool, error)

IsWiredHeadsetOn calls the IsWiredHeadsetOn RPC.

func (*Client) LoadSoundEffects

func (c *Client) LoadSoundEffects(ctx context.Context) error

LoadSoundEffects calls the LoadSoundEffects RPC.

func (*Client) PlaySoundEffect1

func (c *Client) PlaySoundEffect1(ctx context.Context, arg0 int32) error

PlaySoundEffect1 calls the PlaySoundEffect1 RPC.

func (*Client) PlaySoundEffect2_1

func (c *Client) PlaySoundEffect2_1(ctx context.Context, arg0 int32, arg1 float32) error

PlaySoundEffect2_1 calls the PlaySoundEffect2_1 RPC.

func (*Client) RegisterMediaButtonEventReceiver1

func (c *Client) RegisterMediaButtonEventReceiver1(ctx context.Context, arg0 int64) error

RegisterMediaButtonEventReceiver1 calls the RegisterMediaButtonEventReceiver1 RPC.

func (*Client) RegisterMediaButtonEventReceiver1_1

func (c *Client) RegisterMediaButtonEventReceiver1_1(ctx context.Context, arg0 int64) error

RegisterMediaButtonEventReceiver1_1 calls the RegisterMediaButtonEventReceiver1_1 RPC.

func (*Client) RegisterRemoteControlClient

func (c *Client) RegisterRemoteControlClient(ctx context.Context, arg0 int64) error

RegisterRemoteControlClient calls the RegisterRemoteControlClient RPC.

func (*Client) RegisterRemoteController

func (c *Client) RegisterRemoteController(ctx context.Context, arg0 int64) (bool, error)

RegisterRemoteController calls the RegisterRemoteController RPC.

func (*Client) RemoveOnCommunicationDeviceChangedListener

func (c *Client) RemoveOnCommunicationDeviceChangedListener(ctx context.Context, arg0 int64) error

RemoveOnCommunicationDeviceChangedListener calls the RemoveOnCommunicationDeviceChangedListener RPC.

func (*Client) RemoveOnModeChangedListener

func (c *Client) RemoveOnModeChangedListener(ctx context.Context, arg0 int64) error

RemoveOnModeChangedListener calls the RemoveOnModeChangedListener RPC.

func (*Client) RemoveOnPreferredMixerAttributesChangedListener

func (c *Client) RemoveOnPreferredMixerAttributesChangedListener(ctx context.Context, arg0 int64) error

RemoveOnPreferredMixerAttributesChangedListener calls the RemoveOnPreferredMixerAttributesChangedListener RPC.

func (*Client) RequestAudioFocus1

func (c *Client) RequestAudioFocus1(ctx context.Context, arg0 int64) (int32, error)

RequestAudioFocus1 calls the RequestAudioFocus1 RPC.

func (*Client) RequestAudioFocus3_1

func (c *Client) RequestAudioFocus3_1(ctx context.Context, arg0 int64, arg1 int32, arg2 int32) (int32, error)

RequestAudioFocus3_1 calls the RequestAudioFocus3_1 RPC.

func (*Client) SetAllowedCapturePolicy

func (c *Client) SetAllowedCapturePolicy(ctx context.Context, arg0 int32) error

SetAllowedCapturePolicy calls the SetAllowedCapturePolicy RPC.

func (*Client) SetBluetoothA2DpOn

func (c *Client) SetBluetoothA2DpOn(ctx context.Context, arg0 bool) error

SetBluetoothA2DpOn calls the SetBluetoothA2DpOn RPC.

func (*Client) SetBluetoothScoOn

func (c *Client) SetBluetoothScoOn(ctx context.Context, arg0 bool) error

SetBluetoothScoOn calls the SetBluetoothScoOn RPC.

func (*Client) SetCommunicationDevice

func (c *Client) SetCommunicationDevice(ctx context.Context, arg0 int64) (bool, error)

SetCommunicationDevice calls the SetCommunicationDevice RPC.

func (*Client) SetEncodedSurroundMode

func (c *Client) SetEncodedSurroundMode(ctx context.Context, arg0 int32) (bool, error)

SetEncodedSurroundMode calls the SetEncodedSurroundMode RPC.

func (*Client) SetMicrophoneMute

func (c *Client) SetMicrophoneMute(ctx context.Context, arg0 bool) error

SetMicrophoneMute calls the SetMicrophoneMute RPC.

func (*Client) SetMode

func (c *Client) SetMode(ctx context.Context, arg0 int32) error

SetMode calls the SetMode RPC.

func (*Client) SetParameters

func (c *Client) SetParameters(ctx context.Context, arg0 string) error

SetParameters calls the SetParameters RPC.

func (*Client) SetPreferredMixerAttributes

func (c *Client) SetPreferredMixerAttributes(ctx context.Context, arg0 int64, arg1 int64, arg2 int64) (bool, error)

SetPreferredMixerAttributes calls the SetPreferredMixerAttributes RPC.

func (*Client) SetRingerMode

func (c *Client) SetRingerMode(ctx context.Context, arg0 int32) error

SetRingerMode calls the SetRingerMode RPC.

func (*Client) SetRouting

func (c *Client) SetRouting(ctx context.Context, arg0 int32, arg1 int32, arg2 int32) error

SetRouting calls the SetRouting RPC.

func (*Client) SetSpeakerphoneOn

func (c *Client) SetSpeakerphoneOn(ctx context.Context, arg0 bool) error

SetSpeakerphoneOn calls the SetSpeakerphoneOn RPC.

func (*Client) SetStreamMute

func (c *Client) SetStreamMute(ctx context.Context, arg0 int32, arg1 bool) error

SetStreamMute calls the SetStreamMute RPC.

func (*Client) SetStreamSolo

func (c *Client) SetStreamSolo(ctx context.Context, arg0 int32, arg1 bool) error

SetStreamSolo calls the SetStreamSolo RPC.

func (*Client) SetStreamVolume

func (c *Client) SetStreamVolume(ctx context.Context, arg0 int32, arg1 int32, arg2 int32) error

SetStreamVolume calls the SetStreamVolume RPC.

func (*Client) SetSurroundFormatEnabled

func (c *Client) SetSurroundFormatEnabled(ctx context.Context, arg0 int32, arg1 bool) (bool, error)

SetSurroundFormatEnabled calls the SetSurroundFormatEnabled RPC.

func (*Client) SetVibrateSetting

func (c *Client) SetVibrateSetting(ctx context.Context, arg0 int32, arg1 int32) error

SetVibrateSetting calls the SetVibrateSetting RPC.

func (*Client) SetWiredHeadsetOn

func (c *Client) SetWiredHeadsetOn(ctx context.Context, arg0 bool) error

SetWiredHeadsetOn calls the SetWiredHeadsetOn RPC.

func (*Client) ShouldVibrate

func (c *Client) ShouldVibrate(ctx context.Context, arg0 int32) (bool, error)

ShouldVibrate calls the ShouldVibrate RPC.

func (*Client) StartBluetoothSco

func (c *Client) StartBluetoothSco(ctx context.Context) error

StartBluetoothSco calls the StartBluetoothSco RPC.

func (*Client) StopBluetoothSco

func (c *Client) StopBluetoothSco(ctx context.Context) error

StopBluetoothSco calls the StopBluetoothSco RPC.

func (*Client) UnloadSoundEffects

func (c *Client) UnloadSoundEffects(ctx context.Context) error

UnloadSoundEffects calls the UnloadSoundEffects RPC.

func (*Client) UnregisterAudioDeviceCallback

func (c *Client) UnregisterAudioDeviceCallback(ctx context.Context, arg0 int64) error

UnregisterAudioDeviceCallback calls the UnregisterAudioDeviceCallback RPC.

func (*Client) UnregisterAudioPlaybackCallback

func (c *Client) UnregisterAudioPlaybackCallback(ctx context.Context, arg0 int64) error

UnregisterAudioPlaybackCallback calls the UnregisterAudioPlaybackCallback RPC.

func (*Client) UnregisterAudioRecordingCallback

func (c *Client) UnregisterAudioRecordingCallback(ctx context.Context, arg0 int64) error

UnregisterAudioRecordingCallback calls the UnregisterAudioRecordingCallback RPC.

func (*Client) UnregisterMediaButtonEventReceiver1

func (c *Client) UnregisterMediaButtonEventReceiver1(ctx context.Context, arg0 int64) error

UnregisterMediaButtonEventReceiver1 calls the UnregisterMediaButtonEventReceiver1 RPC.

func (*Client) UnregisterMediaButtonEventReceiver1_1

func (c *Client) UnregisterMediaButtonEventReceiver1_1(ctx context.Context, arg0 int64) error

UnregisterMediaButtonEventReceiver1_1 calls the UnregisterMediaButtonEventReceiver1_1 RPC.

func (*Client) UnregisterRemoteControlClient

func (c *Client) UnregisterRemoteControlClient(ctx context.Context, arg0 int64) error

UnregisterRemoteControlClient calls the UnregisterRemoteControlClient RPC.

func (*Client) UnregisterRemoteController

func (c *Client) UnregisterRemoteController(ctx context.Context, arg0 int64) error

UnregisterRemoteController calls the UnregisterRemoteController RPC.

Jump to

Keyboard shortcuts

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