Documentation
¶
Index ¶
- Constants
- type A2dpConfiguration
- type A2dpConfigurationHint
- type A2dpRemoteCapabilities
- type A2dpStatus
- type A2dpStreamConfiguration
- type AacCapabilities
- type AacConfiguration
- type AacObjectType
- type AptxAdaptiveCapabilities
- type AptxAdaptiveChannelMode
- type AptxAdaptiveConfiguration
- type AptxAdaptiveInputMode
- type AptxAdaptiveLeCapabilities
- type AptxAdaptiveLeConfiguration
- type AptxAdaptiveTimeToPlay
- type AptxCapabilities
- type AptxConfiguration
- type AptxMode
- type AptxSinkBuffering
- type AudioCapabilities
- func (u *AudioCapabilities) GetA2dpCapabilities() (CodecCapabilities, bool)
- func (u *AudioCapabilities) GetLeAudioCapabilities() (LeAudioCodecCapabilitiesSetting, bool)
- func (u *AudioCapabilities) GetPcmCapabilities() (PcmCapabilities, bool)
- func (u *AudioCapabilities) MarshalParcel(p *parcel.Parcel) error
- func (u *AudioCapabilities) SetA2dpCapabilities(v CodecCapabilities)
- func (u *AudioCapabilities) SetLeAudioCapabilities(v LeAudioCodecCapabilitiesSetting)
- func (u *AudioCapabilities) SetPcmCapabilities(v PcmCapabilities)
- func (u *AudioCapabilities) UnmarshalParcel(p *parcel.Parcel) error
- type AudioConfiguration
- func (u *AudioConfiguration) GetA2dp() (A2dpStreamConfiguration, bool)
- func (u *AudioConfiguration) GetA2dpConfig() (CodecConfiguration, bool)
- func (u *AudioConfiguration) GetHfpConfig() (HfpConfiguration, bool)
- func (u *AudioConfiguration) GetLeAudioBroadcastConfig() (LeAudioBroadcastConfiguration, bool)
- func (u *AudioConfiguration) GetLeAudioConfig() (LeAudioConfiguration, bool)
- func (u *AudioConfiguration) GetPcmConfig() (PcmConfiguration, bool)
- func (u *AudioConfiguration) MarshalParcel(p *parcel.Parcel) error
- func (u *AudioConfiguration) SetA2dp(v A2dpStreamConfiguration)
- func (u *AudioConfiguration) SetA2dpConfig(v CodecConfiguration)
- func (u *AudioConfiguration) SetHfpConfig(v HfpConfiguration)
- func (u *AudioConfiguration) SetLeAudioBroadcastConfig(v LeAudioBroadcastConfiguration)
- func (u *AudioConfiguration) SetLeAudioConfig(v LeAudioConfiguration)
- func (u *AudioConfiguration) SetPcmConfig(v PcmConfiguration)
- func (u *AudioConfiguration) UnmarshalParcel(p *parcel.Parcel) error
- type AudioContext
- type AudioLocation
- type BluetoothAudioPortProxy
- func (p *BluetoothAudioPortProxy) AsBinder() binder.IBinder
- func (p *BluetoothAudioPortProxy) GetPresentationPosition(ctx context.Context) (PresentationPosition, error)
- func (p *BluetoothAudioPortProxy) SetLatencyMode(ctx context.Context, latencyMode LatencyMode) error
- func (p *BluetoothAudioPortProxy) StartStream(ctx context.Context, isLowLatency bool) error
- func (p *BluetoothAudioPortProxy) StopStream(ctx context.Context) error
- func (p *BluetoothAudioPortProxy) SuspendStream(ctx context.Context) error
- func (p *BluetoothAudioPortProxy) UpdateSinkMetadata(ctx context.Context, sinkMetadata common.SinkMetadata) error
- func (p *BluetoothAudioPortProxy) UpdateSourceMetadata(ctx context.Context, sourceMetadata common.SourceMetadata) error
- type BluetoothAudioPortStub
- type BluetoothAudioProviderFactoryProxy
- func (p *BluetoothAudioProviderFactoryProxy) AsBinder() binder.IBinder
- func (p *BluetoothAudioProviderFactoryProxy) GetProviderCapabilities(ctx context.Context, sessionType SessionType) ([]AudioCapabilities, error)
- func (p *BluetoothAudioProviderFactoryProxy) GetProviderInfo(ctx context.Context, sessionType SessionType) (IBluetoothAudioProviderFactoryProviderInfo, error)
- func (p *BluetoothAudioProviderFactoryProxy) OpenProvider(ctx context.Context, sessionType SessionType) (IBluetoothAudioProvider, error)
- type BluetoothAudioProviderFactoryStub
- type BluetoothAudioProviderProxy
- func (p *BluetoothAudioProviderProxy) AsBinder() binder.IBinder
- func (p *BluetoothAudioProviderProxy) EndSession(ctx context.Context) error
- func (p *BluetoothAudioProviderProxy) GetA2dpConfiguration(ctx context.Context, remoteA2dpCapabilities []A2dpRemoteCapabilities, ...) (A2dpConfiguration, error)
- func (p *BluetoothAudioProviderProxy) GetLeAudioAseConfiguration(ctx context.Context, ...) ([]IBluetoothAudioProviderLeAudioAseConfigurationSetting, error)
- func (p *BluetoothAudioProviderProxy) GetLeAudioAseDatapathConfiguration(ctx context.Context, sinkConfig *IBluetoothAudioProviderStreamConfig, ...) (IBluetoothAudioProviderLeAudioDataPathConfigurationPair, error)
- func (p *BluetoothAudioProviderProxy) GetLeAudioAseQosConfiguration(ctx context.Context, ...) (IBluetoothAudioProviderLeAudioAseQosConfigurationPair, error)
- func (p *BluetoothAudioProviderProxy) GetLeAudioBroadcastConfiguration(ctx context.Context, ...) (IBluetoothAudioProviderLeAudioBroadcastConfigurationSetting, error)
- func (p *BluetoothAudioProviderProxy) GetLeAudioBroadcastDatapathConfiguration(ctx context.Context, audioContext AudioContext, ...) (IBluetoothAudioProviderLeAudioDataPathConfiguration, error)
- func (p *BluetoothAudioProviderProxy) OnSinkAseMetadataChanged(ctx context.Context, state IBluetoothAudioProviderAseState, cigId int32, ...) error
- func (p *BluetoothAudioProviderProxy) OnSourceAseMetadataChanged(ctx context.Context, state IBluetoothAudioProviderAseState, cigId int32, ...) error
- func (p *BluetoothAudioProviderProxy) ParseA2dpConfiguration(ctx context.Context, codecId CodecId, configuration []byte, ...) (A2dpStatus, error)
- func (p *BluetoothAudioProviderProxy) SetCodecPriority(ctx context.Context, codecId CodecId, priority int32) error
- func (p *BluetoothAudioProviderProxy) SetLowLatencyModeAllowed(ctx context.Context, allowed bool) error
- func (p *BluetoothAudioProviderProxy) StartSession(ctx context.Context, hostIf IBluetoothAudioPort, ...) (fmq.MQDescriptor, error)
- func (p *BluetoothAudioProviderProxy) StreamStarted(ctx context.Context, status BluetoothAudioStatus) error
- func (p *BluetoothAudioProviderProxy) StreamSuspended(ctx context.Context, status BluetoothAudioStatus) error
- func (p *BluetoothAudioProviderProxy) UpdateAudioConfiguration(ctx context.Context, audioConfig AudioConfiguration) error
- type BluetoothAudioProviderStub
- type BluetoothAudioStatus
- type BroadcastCapability
- type BroadcastCapabilityLeAudioCodecCapabilities
- func (u *BroadcastCapabilityLeAudioCodecCapabilities) GetLc3Capabilities() ([]Lc3Capabilities, bool)
- func (u *BroadcastCapabilityLeAudioCodecCapabilities) GetVendorCapabillities() ([]BroadcastCapabilityVendorCapabilities, bool)
- func (u *BroadcastCapabilityLeAudioCodecCapabilities) MarshalParcel(p *parcel.Parcel) error
- func (u *BroadcastCapabilityLeAudioCodecCapabilities) SetLc3Capabilities(v []Lc3Capabilities)
- func (u *BroadcastCapabilityLeAudioCodecCapabilities) SetVendorCapabillities(v []BroadcastCapabilityVendorCapabilities)
- func (u *BroadcastCapabilityLeAudioCodecCapabilities) UnmarshalParcel(p *parcel.Parcel) error
- type BroadcastCapabilityVendorCapabilities
- type ChannelMode
- type CodecCapabilities
- type CodecCapabilitiesCapabilities
- func (u *CodecCapabilitiesCapabilities) GetAacCapabilities() (AacCapabilities, bool)
- func (u *CodecCapabilitiesCapabilities) GetAptxAdaptiveCapabilities() (AptxAdaptiveCapabilities, bool)
- func (u *CodecCapabilitiesCapabilities) GetAptxCapabilities() (AptxCapabilities, bool)
- func (u *CodecCapabilitiesCapabilities) GetLc3Capabilities() (Lc3Capabilities, bool)
- func (u *CodecCapabilitiesCapabilities) GetLdacCapabilities() (LdacCapabilities, bool)
- func (u *CodecCapabilitiesCapabilities) GetOpusCapabilities() (*OpusCapabilities, bool)
- func (u *CodecCapabilitiesCapabilities) GetSbcCapabilities() (SbcCapabilities, bool)
- func (u *CodecCapabilitiesCapabilities) GetVendorCapabilities() (CodecCapabilitiesVendorCapabilities, bool)
- func (u *CodecCapabilitiesCapabilities) MarshalParcel(p *parcel.Parcel) error
- func (u *CodecCapabilitiesCapabilities) SetAacCapabilities(v AacCapabilities)
- func (u *CodecCapabilitiesCapabilities) SetAptxAdaptiveCapabilities(v AptxAdaptiveCapabilities)
- func (u *CodecCapabilitiesCapabilities) SetAptxCapabilities(v AptxCapabilities)
- func (u *CodecCapabilitiesCapabilities) SetLc3Capabilities(v Lc3Capabilities)
- func (u *CodecCapabilitiesCapabilities) SetLdacCapabilities(v LdacCapabilities)
- func (u *CodecCapabilitiesCapabilities) SetOpusCapabilities(v *OpusCapabilities)
- func (u *CodecCapabilitiesCapabilities) SetSbcCapabilities(v SbcCapabilities)
- func (u *CodecCapabilitiesCapabilities) SetVendorCapabilities(v CodecCapabilitiesVendorCapabilities)
- func (u *CodecCapabilitiesCapabilities) UnmarshalParcel(p *parcel.Parcel) error
- type CodecCapabilitiesVendorCapabilities
- type CodecConfiguration
- type CodecConfigurationCodecSpecific
- func (u *CodecConfigurationCodecSpecific) GetAacConfig() (AacConfiguration, bool)
- func (u *CodecConfigurationCodecSpecific) GetAptxAdaptiveConfig() (AptxAdaptiveConfiguration, bool)
- func (u *CodecConfigurationCodecSpecific) GetAptxConfig() (AptxConfiguration, bool)
- func (u *CodecConfigurationCodecSpecific) GetLc3Config() (Lc3Configuration, bool)
- func (u *CodecConfigurationCodecSpecific) GetLdacConfig() (LdacConfiguration, bool)
- func (u *CodecConfigurationCodecSpecific) GetOpusConfig() (*OpusConfiguration, bool)
- func (u *CodecConfigurationCodecSpecific) GetSbcConfig() (SbcConfiguration, bool)
- func (u *CodecConfigurationCodecSpecific) GetVendorConfig() (CodecConfigurationVendorConfiguration, bool)
- func (u *CodecConfigurationCodecSpecific) MarshalParcel(p *parcel.Parcel) error
- func (u *CodecConfigurationCodecSpecific) SetAacConfig(v AacConfiguration)
- func (u *CodecConfigurationCodecSpecific) SetAptxAdaptiveConfig(v AptxAdaptiveConfiguration)
- func (u *CodecConfigurationCodecSpecific) SetAptxConfig(v AptxConfiguration)
- func (u *CodecConfigurationCodecSpecific) SetLc3Config(v Lc3Configuration)
- func (u *CodecConfigurationCodecSpecific) SetLdacConfig(v LdacConfiguration)
- func (u *CodecConfigurationCodecSpecific) SetOpusConfig(v *OpusConfiguration)
- func (u *CodecConfigurationCodecSpecific) SetSbcConfig(v SbcConfiguration)
- func (u *CodecConfigurationCodecSpecific) SetVendorConfig(v CodecConfigurationVendorConfiguration)
- func (u *CodecConfigurationCodecSpecific) UnmarshalParcel(p *parcel.Parcel) error
- type CodecConfigurationVendorConfiguration
- type CodecId
- func (u *CodecId) GetA2dp() (CodecIdA2dp, bool)
- func (u *CodecId) GetCore() (CodecIdCore, bool)
- func (u *CodecId) GetVendor() (CodecIdVendor, bool)
- func (u *CodecId) MarshalParcel(p *parcel.Parcel) error
- func (u *CodecId) SetA2dp(v CodecIdA2dp)
- func (u *CodecId) SetCore(v CodecIdCore)
- func (u *CodecId) SetVendor(v CodecIdVendor)
- func (u *CodecId) UnmarshalParcel(p *parcel.Parcel) error
- type CodecIdA2dp
- type CodecIdCore
- type CodecIdVendor
- type CodecInfo
- type CodecInfoA2dp
- type CodecInfoHfp
- type CodecInfoLeAudio
- type CodecInfoTransport
- func (u *CodecInfoTransport) GetA2dp() (CodecInfoA2dp, bool)
- func (u *CodecInfoTransport) GetHfp() (CodecInfoHfp, bool)
- func (u *CodecInfoTransport) GetLeAudio() (CodecInfoLeAudio, bool)
- func (u *CodecInfoTransport) MarshalParcel(p *parcel.Parcel) error
- func (u *CodecInfoTransport) SetA2dp(v CodecInfoA2dp)
- func (u *CodecInfoTransport) SetHfp(v CodecInfoHfp)
- func (u *CodecInfoTransport) SetLeAudio(v CodecInfoLeAudio)
- func (u *CodecInfoTransport) UnmarshalParcel(p *parcel.Parcel) error
- type CodecParameters
- type CodecSpecificCapabilitiesLtv
- func (u *CodecSpecificCapabilitiesLtv) GetSupportedAudioChannelCounts() (CodecSpecificCapabilitiesLtvSupportedAudioChannelCounts, bool)
- func (u *CodecSpecificCapabilitiesLtv) GetSupportedFrameDurations() (CodecSpecificCapabilitiesLtvSupportedFrameDurations, bool)
- func (u *CodecSpecificCapabilitiesLtv) GetSupportedMaxCodecFramesPerSDU() (CodecSpecificCapabilitiesLtvSupportedMaxCodecFramesPerSDU, bool)
- func (u *CodecSpecificCapabilitiesLtv) GetSupportedOctetsPerCodecFrame() (CodecSpecificCapabilitiesLtvSupportedOctetsPerCodecFrame, bool)
- func (u *CodecSpecificCapabilitiesLtv) GetSupportedSamplingFrequencies() (CodecSpecificCapabilitiesLtvSupportedSamplingFrequencies, bool)
- func (u *CodecSpecificCapabilitiesLtv) MarshalParcel(p *parcel.Parcel) error
- func (u *CodecSpecificCapabilitiesLtv) SetSupportedAudioChannelCounts(v CodecSpecificCapabilitiesLtvSupportedAudioChannelCounts)
- func (u *CodecSpecificCapabilitiesLtv) SetSupportedFrameDurations(v CodecSpecificCapabilitiesLtvSupportedFrameDurations)
- func (u *CodecSpecificCapabilitiesLtv) SetSupportedMaxCodecFramesPerSDU(v CodecSpecificCapabilitiesLtvSupportedMaxCodecFramesPerSDU)
- func (u *CodecSpecificCapabilitiesLtv) SetSupportedOctetsPerCodecFrame(v CodecSpecificCapabilitiesLtvSupportedOctetsPerCodecFrame)
- func (u *CodecSpecificCapabilitiesLtv) SetSupportedSamplingFrequencies(v CodecSpecificCapabilitiesLtvSupportedSamplingFrequencies)
- func (u *CodecSpecificCapabilitiesLtv) UnmarshalParcel(p *parcel.Parcel) error
- type CodecSpecificCapabilitiesLtvSupportedAudioChannelCounts
- type CodecSpecificCapabilitiesLtvSupportedFrameDurations
- type CodecSpecificCapabilitiesLtvSupportedMaxCodecFramesPerSDU
- type CodecSpecificCapabilitiesLtvSupportedOctetsPerCodecFrame
- type CodecSpecificCapabilitiesLtvSupportedSamplingFrequencies
- type CodecSpecificConfigurationLtv
- func (u *CodecSpecificConfigurationLtv) GetAudioChannelAllocation() (CodecSpecificConfigurationLtvAudioChannelAllocation, bool)
- func (u *CodecSpecificConfigurationLtv) GetCodecFrameBlocksPerSDU() (CodecSpecificConfigurationLtvCodecFrameBlocksPerSDU, bool)
- func (u *CodecSpecificConfigurationLtv) GetFrameDuration() (CodecSpecificConfigurationLtvFrameDuration, bool)
- func (u *CodecSpecificConfigurationLtv) GetOctetsPerCodecFrame() (CodecSpecificConfigurationLtvOctetsPerCodecFrame, bool)
- func (u *CodecSpecificConfigurationLtv) GetSamplingFrequency() (CodecSpecificConfigurationLtvSamplingFrequency, bool)
- func (u *CodecSpecificConfigurationLtv) MarshalParcel(p *parcel.Parcel) error
- func (u *CodecSpecificConfigurationLtv) SetAudioChannelAllocation(v CodecSpecificConfigurationLtvAudioChannelAllocation)
- func (u *CodecSpecificConfigurationLtv) SetCodecFrameBlocksPerSDU(v CodecSpecificConfigurationLtvCodecFrameBlocksPerSDU)
- func (u *CodecSpecificConfigurationLtv) SetFrameDuration(v CodecSpecificConfigurationLtvFrameDuration)
- func (u *CodecSpecificConfigurationLtv) SetOctetsPerCodecFrame(v CodecSpecificConfigurationLtvOctetsPerCodecFrame)
- func (u *CodecSpecificConfigurationLtv) SetSamplingFrequency(v CodecSpecificConfigurationLtvSamplingFrequency)
- func (u *CodecSpecificConfigurationLtv) UnmarshalParcel(p *parcel.Parcel) error
- type CodecSpecificConfigurationLtvAudioChannelAllocation
- type CodecSpecificConfigurationLtvCodecFrameBlocksPerSDU
- type CodecSpecificConfigurationLtvFrameDuration
- type CodecSpecificConfigurationLtvOctetsPerCodecFrame
- type CodecSpecificConfigurationLtvSamplingFrequency
- type CodecType
- type ConfigurationFlags
- type HfpConfiguration
- type IBluetoothAudioPort
- type IBluetoothAudioPortServer
- type IBluetoothAudioProvider
- type IBluetoothAudioProviderAseState
- type IBluetoothAudioProviderBroadcastQuality
- type IBluetoothAudioProviderFactory
- type IBluetoothAudioProviderFactoryProviderInfo
- type IBluetoothAudioProviderFactoryServer
- type IBluetoothAudioProviderFraming
- type IBluetoothAudioProviderLeAudioAseConfigurationSetting
- type IBluetoothAudioProviderLeAudioAseConfigurationSettingAseDirectionConfiguration
- type IBluetoothAudioProviderLeAudioAseQosConfiguration
- type IBluetoothAudioProviderLeAudioAseQosConfigurationPair
- type IBluetoothAudioProviderLeAudioAseQosConfigurationRequirement
- type IBluetoothAudioProviderLeAudioAseQosConfigurationRequirementAseQosDirectionRequirement
- type IBluetoothAudioProviderLeAudioBroadcastConfigurationRequirement
- type IBluetoothAudioProviderLeAudioBroadcastConfigurationSetting
- type IBluetoothAudioProviderLeAudioBroadcastSubgroupConfiguration
- type IBluetoothAudioProviderLeAudioBroadcastSubgroupConfigurationRequirement
- type IBluetoothAudioProviderLeAudioConfigurationRequirement
- type IBluetoothAudioProviderLeAudioConfigurationRequirementAseDirectionRequirement
- type IBluetoothAudioProviderLeAudioDataPathConfiguration
- type IBluetoothAudioProviderLeAudioDataPathConfigurationDataPathConfiguration
- type IBluetoothAudioProviderLeAudioDataPathConfigurationIsoDataPathConfiguration
- type IBluetoothAudioProviderLeAudioDataPathConfigurationPair
- type IBluetoothAudioProviderLeAudioDeviceCapabilities
- type IBluetoothAudioProviderLeAudioSubgroupBisConfiguration
- type IBluetoothAudioProviderPacking
- type IBluetoothAudioProviderServer
- type IBluetoothAudioProviderStreamConfig
- type LatencyMode
- type Lc3Capabilities
- type Lc3Configuration
- type LdacCapabilities
- type LdacChannelMode
- type LdacConfiguration
- type LdacQualityIndex
- type LeAudioAseConfiguration
- type LeAudioAseConfigurationTargetLatency
- type LeAudioBisConfiguration
- type LeAudioBroadcastConfiguration
- type LeAudioBroadcastConfigurationBroadcastStreamMap
- type LeAudioCodecCapabilitiesSetting
- type LeAudioCodecConfiguration
- func (u *LeAudioCodecConfiguration) GetAptxAdaptiveLeConfig() (AptxAdaptiveLeConfiguration, bool)
- func (u *LeAudioCodecConfiguration) GetLc3Config() (Lc3Configuration, bool)
- func (u *LeAudioCodecConfiguration) GetVendorConfig() (LeAudioCodecConfigurationVendorConfiguration, bool)
- func (u *LeAudioCodecConfiguration) MarshalParcel(p *parcel.Parcel) error
- func (u *LeAudioCodecConfiguration) SetAptxAdaptiveLeConfig(v AptxAdaptiveLeConfiguration)
- func (u *LeAudioCodecConfiguration) SetLc3Config(v Lc3Configuration)
- func (u *LeAudioCodecConfiguration) SetVendorConfig(v LeAudioCodecConfigurationVendorConfiguration)
- func (u *LeAudioCodecConfiguration) UnmarshalParcel(p *parcel.Parcel) error
- type LeAudioCodecConfigurationVendorConfiguration
- type LeAudioConfiguration
- type LeAudioConfigurationStreamMap
- type LeAudioConfigurationStreamMapBluetoothDeviceAddress
- type LeAudioConfigurationStreamMapBluetoothDeviceAddressDeviceAddressType
- type MetadataLtv
- func (u *MetadataLtv) GetPreferredAudioContexts() (MetadataLtvPreferredAudioContexts, bool)
- func (u *MetadataLtv) GetStreamingAudioContexts() (MetadataLtvStreamingAudioContexts, bool)
- func (u *MetadataLtv) GetVendorSpecific() (MetadataLtvVendorSpecific, bool)
- func (u *MetadataLtv) MarshalParcel(p *parcel.Parcel) error
- func (u *MetadataLtv) SetPreferredAudioContexts(v MetadataLtvPreferredAudioContexts)
- func (u *MetadataLtv) SetStreamingAudioContexts(v MetadataLtvStreamingAudioContexts)
- func (u *MetadataLtv) SetVendorSpecific(v MetadataLtvVendorSpecific)
- func (u *MetadataLtv) UnmarshalParcel(p *parcel.Parcel) error
- type MetadataLtvPreferredAudioContexts
- type MetadataLtvStreamingAudioContexts
- type MetadataLtvVendorSpecific
- type OpusCapabilities
- type OpusConfiguration
- type PcmCapabilities
- type PcmConfiguration
- type Phy
- type PresentationPosition
- type PresentationPositionTimeSpec
- type SbcAllocMethod
- type SbcCapabilities
- type SbcChannelMode
- type SbcConfiguration
- type SessionType
- type UnicastCapability
- type UnicastCapabilityLeAudioCodecCapabilities
- func (u *UnicastCapabilityLeAudioCodecCapabilities) GetAptxAdaptiveLeCapabilities() (AptxAdaptiveLeCapabilities, bool)
- func (u *UnicastCapabilityLeAudioCodecCapabilities) GetLc3Capabilities() (Lc3Capabilities, bool)
- func (u *UnicastCapabilityLeAudioCodecCapabilities) GetVendorCapabillities() (UnicastCapabilityVendorCapabilities, bool)
- func (u *UnicastCapabilityLeAudioCodecCapabilities) MarshalParcel(p *parcel.Parcel) error
- func (u *UnicastCapabilityLeAudioCodecCapabilities) SetAptxAdaptiveLeCapabilities(v AptxAdaptiveLeCapabilities)
- func (u *UnicastCapabilityLeAudioCodecCapabilities) SetLc3Capabilities(v Lc3Capabilities)
- func (u *UnicastCapabilityLeAudioCodecCapabilities) SetVendorCapabillities(v UnicastCapabilityVendorCapabilities)
- func (u *UnicastCapabilityLeAudioCodecCapabilities) UnmarshalParcel(p *parcel.Parcel) error
- type UnicastCapabilityVendorCapabilities
Constants ¶
const ( AudioCapabilitiesTagPcmCapabilities int32 = 0 AudioCapabilitiesTagA2dpCapabilities int32 = 1 AudioCapabilitiesTagLeAudioCapabilities int32 = 2 )
const ( AudioConfigurationTagPcmConfig int32 = 0 AudioConfigurationTagA2dpConfig int32 = 1 AudioConfigurationTagLeAudioConfig int32 = 2 AudioConfigurationTagLeAudioBroadcastConfig int32 = 3 AudioConfigurationTagHfpConfig int32 = 4 AudioConfigurationTagA2dp int32 = 5 )
const ( AudioContextUNSPECIFIED int32 = 1 AudioContextCONVERSATIONAL int32 = 2 AudioContextMEDIA int32 = 4 AudioContextGAME int32 = 8 AudioContextINSTRUCTIONAL int32 = 16 AudioContextVoiceAssistants int32 = 32 AudioContextLiveAudio int32 = 64 AudioContextSoundEffects int32 = 128 AudioContextNOTIFICATIONS int32 = 256 AudioContextRingtoneAlerts int32 = 512 AudioContextALERTS int32 = 1024 AudioContextEmergencyAlarm int32 = 2048 )
const ( BroadcastCapabilityLeAudioCodecCapabilitiesTagLc3Capabilities int32 = 0 BroadcastCapabilityLeAudioCodecCapabilitiesTagVendorCapabillities int32 = 1 )
const ( CodecCapabilitiesCapabilitiesTagSbcCapabilities int32 = 0 CodecCapabilitiesCapabilitiesTagAacCapabilities int32 = 1 CodecCapabilitiesCapabilitiesTagLdacCapabilities int32 = 2 CodecCapabilitiesCapabilitiesTagAptxCapabilities int32 = 3 CodecCapabilitiesCapabilitiesTagAptxAdaptiveCapabilities int32 = 4 CodecCapabilitiesCapabilitiesTagLc3Capabilities int32 = 5 CodecCapabilitiesCapabilitiesTagVendorCapabilities int32 = 6 CodecCapabilitiesCapabilitiesTagOpusCapabilities int32 = 7 )
const ( CodecConfigurationCodecSpecificTagSbcConfig int32 = 0 CodecConfigurationCodecSpecificTagAacConfig int32 = 1 CodecConfigurationCodecSpecificTagLdacConfig int32 = 2 CodecConfigurationCodecSpecificTagAptxConfig int32 = 3 CodecConfigurationCodecSpecificTagAptxAdaptiveConfig int32 = 4 CodecConfigurationCodecSpecificTagLc3Config int32 = 5 CodecConfigurationCodecSpecificTagVendorConfig int32 = 6 CodecConfigurationCodecSpecificTagOpusConfig int32 = 7 )
const ( CodecIdTagA2dp int32 = 0 CodecIdTagCore int32 = 1 CodecIdTagVendor int32 = 2 )
const ( CodecInfoTransportTagLeAudio int32 = 0 CodecInfoTransportTagA2dp int32 = 1 CodecInfoTransportTagHfp int32 = 2 )
const ( CodecSpecificCapabilitiesLtvTagSupportedSamplingFrequencies int32 = 0 CodecSpecificCapabilitiesLtvTagSupportedFrameDurations int32 = 1 CodecSpecificCapabilitiesLtvTagSupportedAudioChannelCounts int32 = 2 CodecSpecificCapabilitiesLtvTagSupportedOctetsPerCodecFrame int32 = 3 CodecSpecificCapabilitiesLtvTagSupportedMaxCodecFramesPerSDU int32 = 4 )
const ( CodecSpecificCapabilitiesLtvSupportedAudioChannelCountsONE int32 = 1 CodecSpecificCapabilitiesLtvSupportedAudioChannelCountsTWO int32 = 2 CodecSpecificCapabilitiesLtvSupportedAudioChannelCountsTHREE int32 = 4 CodecSpecificCapabilitiesLtvSupportedAudioChannelCountsFOUR int32 = 8 CodecSpecificCapabilitiesLtvSupportedAudioChannelCountsFIVE int32 = 16 CodecSpecificCapabilitiesLtvSupportedAudioChannelCountsSIX int32 = 32 CodecSpecificCapabilitiesLtvSupportedAudioChannelCountsSEVEN int32 = 64 CodecSpecificCapabilitiesLtvSupportedAudioChannelCountsEIGHT int32 = 128 )
const ( CodecSpecificCapabilitiesLtvSupportedFrameDurationsUS7500 int32 = 1 CodecSpecificCapabilitiesLtvSupportedFrameDurationsUS10000 int32 = 2 CodecSpecificCapabilitiesLtvSupportedFrameDurationsUS7500PREFERRED int32 = 16 CodecSpecificCapabilitiesLtvSupportedFrameDurationsUS10000PREFERRED int32 = 32 )
const ( CodecSpecificCapabilitiesLtvSupportedSamplingFrequenciesHZ8000 int32 = 1 CodecSpecificCapabilitiesLtvSupportedSamplingFrequenciesHZ11025 int32 = 2 CodecSpecificCapabilitiesLtvSupportedSamplingFrequenciesHZ16000 int32 = 4 CodecSpecificCapabilitiesLtvSupportedSamplingFrequenciesHZ22050 int32 = 8 CodecSpecificCapabilitiesLtvSupportedSamplingFrequenciesHZ24000 int32 = 16 CodecSpecificCapabilitiesLtvSupportedSamplingFrequenciesHZ32000 int32 = 32 CodecSpecificCapabilitiesLtvSupportedSamplingFrequenciesHZ44100 int32 = 64 CodecSpecificCapabilitiesLtvSupportedSamplingFrequenciesHZ48000 int32 = 128 CodecSpecificCapabilitiesLtvSupportedSamplingFrequenciesHZ88200 int32 = 256 CodecSpecificCapabilitiesLtvSupportedSamplingFrequenciesHZ96000 int32 = 512 CodecSpecificCapabilitiesLtvSupportedSamplingFrequenciesHZ176400 int32 = 1024 CodecSpecificCapabilitiesLtvSupportedSamplingFrequenciesHZ192000 int32 = 2048 CodecSpecificCapabilitiesLtvSupportedSamplingFrequenciesHZ384000 int32 = 4096 )
const ( CodecSpecificConfigurationLtvAudioChannelAllocationNotAllowed int32 = 0 CodecSpecificConfigurationLtvAudioChannelAllocationFrontLeft int32 = 1 CodecSpecificConfigurationLtvAudioChannelAllocationFrontRight int32 = 2 CodecSpecificConfigurationLtvAudioChannelAllocationFrontCenter int32 = 4 CodecSpecificConfigurationLtvAudioChannelAllocationLowFrequencyEffects1 int32 = 8 CodecSpecificConfigurationLtvAudioChannelAllocationBackLeft int32 = 16 CodecSpecificConfigurationLtvAudioChannelAllocationBackRight int32 = 32 CodecSpecificConfigurationLtvAudioChannelAllocationFrontLeftOfCenter int32 = 64 CodecSpecificConfigurationLtvAudioChannelAllocationFrontRightOfCenter int32 = 128 CodecSpecificConfigurationLtvAudioChannelAllocationBackCenter int32 = 256 CodecSpecificConfigurationLtvAudioChannelAllocationLowFrequencyEffects2 int32 = 512 CodecSpecificConfigurationLtvAudioChannelAllocationSideLeft int32 = 1024 CodecSpecificConfigurationLtvAudioChannelAllocationSideRight int32 = 2048 CodecSpecificConfigurationLtvAudioChannelAllocationTopFrontLeft int32 = 4096 CodecSpecificConfigurationLtvAudioChannelAllocationTopFrontRight int32 = 8192 CodecSpecificConfigurationLtvAudioChannelAllocationTopFrontCenter int32 = 16384 CodecSpecificConfigurationLtvAudioChannelAllocationTopCenter int32 = 32768 CodecSpecificConfigurationLtvAudioChannelAllocationTopBackLeft int32 = 65536 CodecSpecificConfigurationLtvAudioChannelAllocationTopBackRight int32 = 131072 CodecSpecificConfigurationLtvAudioChannelAllocationTopSideLeft int32 = 262144 CodecSpecificConfigurationLtvAudioChannelAllocationTopSideRight int32 = 524288 CodecSpecificConfigurationLtvAudioChannelAllocationTopBackCenter int32 = 1048576 CodecSpecificConfigurationLtvAudioChannelAllocationBottomFrontCenter int32 = 2097152 CodecSpecificConfigurationLtvAudioChannelAllocationBottomFrontLeft int32 = 4194304 CodecSpecificConfigurationLtvAudioChannelAllocationBottomFrontRight int32 = 8388608 CodecSpecificConfigurationLtvAudioChannelAllocationFrontLeftWide int32 = 16777216 CodecSpecificConfigurationLtvAudioChannelAllocationFrontRightWide int32 = 33554432 CodecSpecificConfigurationLtvAudioChannelAllocationLeftSurround int32 = 67108864 CodecSpecificConfigurationLtvAudioChannelAllocationRightSurround int32 = 134217728 )
const ( CodecSpecificConfigurationLtvTagCodecFrameBlocksPerSDU int32 = 0 CodecSpecificConfigurationLtvTagSamplingFrequency int32 = 1 CodecSpecificConfigurationLtvTagFrameDuration int32 = 2 CodecSpecificConfigurationLtvTagAudioChannelAllocation int32 = 3 CodecSpecificConfigurationLtvTagOctetsPerCodecFrame int32 = 4 )
const ( ConfigurationFlagsNONE int32 = 0 ConfigurationFlagsLOSSLESS int32 = 1 ConfigurationFlagsLowLatency int32 = 2 ConfigurationFlagsAllowAsymmetricConfigurations int32 = 4 ConfigurationFlagsSpatialAudio int32 = 8 ConfigurationFlagsProvideAseMetadata int32 = 16 ConfigurationFlagsMonoMicConfiguration int32 = 32 )
const ( TransactionIBluetoothAudioPortGetPresentationPosition = binder.FirstCallTransaction + 0 TransactionIBluetoothAudioPortStartStream = binder.FirstCallTransaction + 1 TransactionIBluetoothAudioPortStopStream = binder.FirstCallTransaction + 2 TransactionIBluetoothAudioPortSuspendStream = binder.FirstCallTransaction + 3 TransactionIBluetoothAudioPortUpdateSourceMetadata = binder.FirstCallTransaction + 4 TransactionIBluetoothAudioPortUpdateSinkMetadata = binder.FirstCallTransaction + 5 TransactionIBluetoothAudioPortSetLatencyMode = binder.FirstCallTransaction + 6 )
const ( MethodIBluetoothAudioPortGetPresentationPosition = "getPresentationPosition" MethodIBluetoothAudioPortStartStream = "startStream" MethodIBluetoothAudioPortStopStream = "stopStream" MethodIBluetoothAudioPortSuspendStream = "suspendStream" MethodIBluetoothAudioPortUpdateSourceMetadata = "updateSourceMetadata" MethodIBluetoothAudioPortUpdateSinkMetadata = "updateSinkMetadata" MethodIBluetoothAudioPortSetLatencyMode = "setLatencyMode" )
const ( TransactionIBluetoothAudioProviderEndSession = binder.FirstCallTransaction + 0 TransactionIBluetoothAudioProviderStartSession = binder.FirstCallTransaction + 1 TransactionIBluetoothAudioProviderStreamStarted = binder.FirstCallTransaction + 2 TransactionIBluetoothAudioProviderStreamSuspended = binder.FirstCallTransaction + 3 TransactionIBluetoothAudioProviderUpdateAudioConfiguration = binder.FirstCallTransaction + 4 TransactionIBluetoothAudioProviderSetLowLatencyModeAllowed = binder.FirstCallTransaction + 5 TransactionIBluetoothAudioProviderParseA2dpConfiguration = binder.FirstCallTransaction + 6 TransactionIBluetoothAudioProviderGetA2dpConfiguration = binder.FirstCallTransaction + 7 TransactionIBluetoothAudioProviderSetCodecPriority = binder.FirstCallTransaction + 8 TransactionIBluetoothAudioProviderGetLeAudioAseConfiguration = binder.FirstCallTransaction + 9 TransactionIBluetoothAudioProviderGetLeAudioAseQosConfiguration = binder.FirstCallTransaction + 10 TransactionIBluetoothAudioProviderGetLeAudioAseDatapathConfiguration = binder.FirstCallTransaction + 11 TransactionIBluetoothAudioProviderOnSinkAseMetadataChanged = binder.FirstCallTransaction + 12 TransactionIBluetoothAudioProviderOnSourceAseMetadataChanged = binder.FirstCallTransaction + 13 TransactionIBluetoothAudioProviderGetLeAudioBroadcastConfiguration = binder.FirstCallTransaction + 14 TransactionIBluetoothAudioProviderGetLeAudioBroadcastDatapathConfiguration = binder.FirstCallTransaction + 15 )
const ( MethodIBluetoothAudioProviderEndSession = "endSession" MethodIBluetoothAudioProviderStartSession = "startSession" MethodIBluetoothAudioProviderStreamStarted = "streamStarted" MethodIBluetoothAudioProviderStreamSuspended = "streamSuspended" MethodIBluetoothAudioProviderUpdateAudioConfiguration = "updateAudioConfiguration" MethodIBluetoothAudioProviderSetLowLatencyModeAllowed = "setLowLatencyModeAllowed" MethodIBluetoothAudioProviderParseA2dpConfiguration = "parseA2dpConfiguration" MethodIBluetoothAudioProviderGetA2dpConfiguration = "getA2dpConfiguration" MethodIBluetoothAudioProviderSetCodecPriority = "setCodecPriority" MethodIBluetoothAudioProviderGetLeAudioAseConfiguration = "getLeAudioAseConfiguration" MethodIBluetoothAudioProviderGetLeAudioAseQosConfiguration = "getLeAudioAseQosConfiguration" MethodIBluetoothAudioProviderGetLeAudioAseDatapathConfiguration = "getLeAudioAseDatapathConfiguration" MethodIBluetoothAudioProviderOnSinkAseMetadataChanged = "onSinkAseMetadataChanged" MethodIBluetoothAudioProviderOnSourceAseMetadataChanged = "onSourceAseMetadataChanged" MethodIBluetoothAudioProviderGetLeAudioBroadcastConfiguration = "getLeAudioBroadcastConfiguration" MethodIBluetoothAudioProviderGetLeAudioBroadcastDatapathConfiguration = "getLeAudioBroadcastDatapathConfiguration" )
const ( IBluetoothAudioProviderCodecPriorityDisabled int32 = -1 IBluetoothAudioProviderCodecPriorityNone int32 = 0 )
const ( TransactionIBluetoothAudioProviderFactoryGetProviderCapabilities = binder.FirstCallTransaction + 0 TransactionIBluetoothAudioProviderFactoryOpenProvider = binder.FirstCallTransaction + 1 TransactionIBluetoothAudioProviderFactoryGetProviderInfo = binder.FirstCallTransaction + 2 )
const ( MethodIBluetoothAudioProviderFactoryGetProviderCapabilities = "getProviderCapabilities" MethodIBluetoothAudioProviderFactoryOpenProvider = "openProvider" MethodIBluetoothAudioProviderFactoryGetProviderInfo = "getProviderInfo" )
const ( LeAudioCodecConfigurationTagLc3Config int32 = 0 LeAudioCodecConfigurationTagVendorConfig int32 = 1 LeAudioCodecConfigurationTagAptxAdaptiveLeConfig int32 = 2 )
const ( MetadataLtvTagPreferredAudioContexts int32 = 0 MetadataLtvTagStreamingAudioContexts int32 = 1 MetadataLtvTagVendorSpecific int32 = 2 )
const ( UnicastCapabilityLeAudioCodecCapabilitiesTagLc3Capabilities int32 = 0 UnicastCapabilityLeAudioCodecCapabilitiesTagVendorCapabillities int32 = 1 UnicastCapabilityLeAudioCodecCapabilitiesTagAptxAdaptiveLeCapabilities int32 = 2 )
const DescriptorIBluetoothAudioPort = "android.hardware.bluetooth.audio.IBluetoothAudioPort"
const DescriptorIBluetoothAudioProvider = "android.hardware.bluetooth.audio.IBluetoothAudioProvider"
const DescriptorIBluetoothAudioProviderFactory = "android.hardware.bluetooth.audio.IBluetoothAudioProviderFactory"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type A2dpConfiguration ¶
type A2dpConfiguration struct {
RemoteSeid int32
Id CodecId
Parameters CodecParameters
Configuration []byte
}
func (*A2dpConfiguration) MarshalParcel ¶
func (s *A2dpConfiguration) MarshalParcel( p *parcel.Parcel, ) error
func (*A2dpConfiguration) UnmarshalParcel ¶
func (s *A2dpConfiguration) UnmarshalParcel( p *parcel.Parcel, ) error
type A2dpConfigurationHint ¶
type A2dpConfigurationHint struct {
BdAddr []byte
AudioContext AudioContext
CodecId *CodecId
CodecParameters *CodecParameters
}
func (*A2dpConfigurationHint) MarshalParcel ¶
func (s *A2dpConfigurationHint) MarshalParcel( p *parcel.Parcel, ) error
func (*A2dpConfigurationHint) UnmarshalParcel ¶
func (s *A2dpConfigurationHint) UnmarshalParcel( p *parcel.Parcel, ) error
type A2dpRemoteCapabilities ¶
func (*A2dpRemoteCapabilities) MarshalParcel ¶
func (s *A2dpRemoteCapabilities) MarshalParcel( p *parcel.Parcel, ) error
func (*A2dpRemoteCapabilities) UnmarshalParcel ¶
func (s *A2dpRemoteCapabilities) UnmarshalParcel( p *parcel.Parcel, ) error
type A2dpStatus ¶
type A2dpStatus byte
const ( A2dpStatusOK A2dpStatus = 0 A2dpStatusBadLength A2dpStatus = 17 A2dpStatusBadPayloadFormat A2dpStatus = 24 A2dpStatusInvalidCodecType A2dpStatus = 193 A2dpStatusNotSupportedCodecType A2dpStatus = 194 A2dpStatusInvalidSamplingFrequency A2dpStatus = 195 A2dpStatusNotSupportedSamplingFrequency A2dpStatus = 196 A2dpStatusInvalidChannelMode A2dpStatus = 197 A2dpStatusNotSupportedChannelMode A2dpStatus = 198 A2dpStatusInvalidSubbands A2dpStatus = 199 A2dpStatusNotSupportedSubbands A2dpStatus = 200 A2dpStatusInvalidAllocationMethod A2dpStatus = 201 A2dpStatusNotSupportedAllocationMethod A2dpStatus = 202 A2dpStatusInvalidMinimumBitpoolValue A2dpStatus = 203 A2dpStatusNotSupportedMinimumBitpoolValue A2dpStatus = 204 A2dpStatusInvalidMaximumBitpoolValue A2dpStatus = 205 A2dpStatusNotSupportedMaximumBitpoolValue A2dpStatus = 206 A2dpStatusNotSupportedVbr A2dpStatus = 211 A2dpStatusNotSupportedBitRate A2dpStatus = 213 A2dpStatusInvalidObjectType A2dpStatus = 214 A2dpStatusNotSupportedObjectType A2dpStatus = 215 A2dpStatusInvalidChannels A2dpStatus = 216 A2dpStatusNotSupportedChannels A2dpStatus = 217 A2dpStatusInvalidBlockLength A2dpStatus = 221 A2dpStatusInvalidCodecParameter A2dpStatus = 226 A2dpStatusNotSupportedCodecParameter A2dpStatus = 227 A2dpStatusInvalidDrc A2dpStatus = 228 A2dpStatusNotSupportedDrc A2dpStatus = 229 )
type A2dpStreamConfiguration ¶
type A2dpStreamConfiguration struct {
PeerMtu int32
CpHeaderScmst []byte
CodecId CodecId
Configuration []byte
}
func (*A2dpStreamConfiguration) MarshalParcel ¶
func (s *A2dpStreamConfiguration) MarshalParcel( p *parcel.Parcel, ) error
func (*A2dpStreamConfiguration) UnmarshalParcel ¶
func (s *A2dpStreamConfiguration) UnmarshalParcel( p *parcel.Parcel, ) error
type AacCapabilities ¶
type AacCapabilities struct {
ObjectType []AacObjectType
SampleRateHz []int32
ChannelMode []ChannelMode
VariableBitRateSupported bool
BitsPerSample []byte
AdaptiveBitRateSupported bool
}
func (*AacCapabilities) MarshalParcel ¶
func (s *AacCapabilities) MarshalParcel( p *parcel.Parcel, ) error
func (*AacCapabilities) UnmarshalParcel ¶
func (s *AacCapabilities) UnmarshalParcel( p *parcel.Parcel, ) error
type AacConfiguration ¶
type AacConfiguration struct {
ObjectType AacObjectType
SampleRateHz int32
ChannelMode ChannelMode
VariableBitRateEnabled bool
BitsPerSample byte
AdaptiveBitRateSupported bool
}
func (*AacConfiguration) MarshalParcel ¶
func (s *AacConfiguration) MarshalParcel( p *parcel.Parcel, ) error
func (*AacConfiguration) UnmarshalParcel ¶
func (s *AacConfiguration) UnmarshalParcel( p *parcel.Parcel, ) error
type AacObjectType ¶
type AacObjectType byte
const ( AacObjectTypeMpeg2Lc AacObjectType = 0 AacObjectTypeMpeg4Lc AacObjectType = 1 AacObjectTypeMpeg4Ltp AacObjectType = 2 AacObjectTypeMpeg4Scalable AacObjectType = 3 )
type AptxAdaptiveCapabilities ¶
type AptxAdaptiveCapabilities struct {
SampleRateHz []int32
ChannelMode []AptxAdaptiveChannelMode
BitsPerSample []byte
AptxMode []AptxMode
SinkBufferingMs AptxSinkBuffering
Ttp AptxAdaptiveTimeToPlay
InputMode AptxAdaptiveInputMode
InputFadeDurationMs int32
AptxAdaptiveConfigStream []byte
}
func (*AptxAdaptiveCapabilities) MarshalParcel ¶
func (s *AptxAdaptiveCapabilities) MarshalParcel( p *parcel.Parcel, ) error
func (*AptxAdaptiveCapabilities) UnmarshalParcel ¶
func (s *AptxAdaptiveCapabilities) UnmarshalParcel( p *parcel.Parcel, ) error
type AptxAdaptiveChannelMode ¶
type AptxAdaptiveChannelMode int32
const ( AptxAdaptiveChannelModeJointStereo AptxAdaptiveChannelMode = 0 AptxAdaptiveChannelModeMONO AptxAdaptiveChannelMode = 1 AptxAdaptiveChannelModeDualMono AptxAdaptiveChannelMode = 2 AptxAdaptiveChannelModeTwsStereo AptxAdaptiveChannelMode = 4 AptxAdaptiveChannelModeUNKNOWN AptxAdaptiveChannelMode = 255 )
type AptxAdaptiveConfiguration ¶
type AptxAdaptiveConfiguration struct {
SampleRateHz int32
ChannelMode AptxAdaptiveChannelMode
BitsPerSample byte
AptxMode AptxMode
SinkBufferingMs AptxSinkBuffering
Ttp AptxAdaptiveTimeToPlay
InputMode AptxAdaptiveInputMode
InputFadeDurationMs int32
AptxAdaptiveConfigStream []byte
}
func (*AptxAdaptiveConfiguration) MarshalParcel ¶
func (s *AptxAdaptiveConfiguration) MarshalParcel( p *parcel.Parcel, ) error
func (*AptxAdaptiveConfiguration) UnmarshalParcel ¶
func (s *AptxAdaptiveConfiguration) UnmarshalParcel( p *parcel.Parcel, ) error
type AptxAdaptiveInputMode ¶
type AptxAdaptiveInputMode int32
const ( AptxAdaptiveInputModeSTEREO AptxAdaptiveInputMode = 0 AptxAdaptiveInputModeDualMono AptxAdaptiveInputMode = 1 )
type AptxAdaptiveLeCapabilities ¶
type AptxAdaptiveLeCapabilities struct {
PcmBitDepth []byte
SamplingFrequencyHz []int32
FrameDurationUs []int32
OctetsPerFrame []int32
BlocksPerSdu []byte
}
func (*AptxAdaptiveLeCapabilities) MarshalParcel ¶
func (s *AptxAdaptiveLeCapabilities) MarshalParcel( p *parcel.Parcel, ) error
func (*AptxAdaptiveLeCapabilities) UnmarshalParcel ¶
func (s *AptxAdaptiveLeCapabilities) UnmarshalParcel( p *parcel.Parcel, ) error
type AptxAdaptiveLeConfiguration ¶
type AptxAdaptiveLeConfiguration struct {
PcmBitDepth byte
SamplingFrequencyHz int32
FrameDurationUs int32
OctetsPerFrame int32
BlocksPerSdu byte
CodecMode int32
}
func (*AptxAdaptiveLeConfiguration) MarshalParcel ¶
func (s *AptxAdaptiveLeConfiguration) MarshalParcel( p *parcel.Parcel, ) error
func (*AptxAdaptiveLeConfiguration) UnmarshalParcel ¶
func (s *AptxAdaptiveLeConfiguration) UnmarshalParcel( p *parcel.Parcel, ) error
type AptxAdaptiveTimeToPlay ¶
type AptxAdaptiveTimeToPlay struct {
LowLowLatency byte
HighLowLatency byte
LowHighQuality byte
HighHighQuality byte
LowTws byte
HighTws byte
}
func (*AptxAdaptiveTimeToPlay) MarshalParcel ¶
func (s *AptxAdaptiveTimeToPlay) MarshalParcel( p *parcel.Parcel, ) error
func (*AptxAdaptiveTimeToPlay) UnmarshalParcel ¶
func (s *AptxAdaptiveTimeToPlay) UnmarshalParcel( p *parcel.Parcel, ) error
type AptxCapabilities ¶
type AptxCapabilities struct {
SampleRateHz []int32
ChannelMode []ChannelMode
BitsPerSample []byte
}
func (*AptxCapabilities) MarshalParcel ¶
func (s *AptxCapabilities) MarshalParcel( p *parcel.Parcel, ) error
func (*AptxCapabilities) UnmarshalParcel ¶
func (s *AptxCapabilities) UnmarshalParcel( p *parcel.Parcel, ) error
type AptxConfiguration ¶
type AptxConfiguration struct {
SampleRateHz int32
ChannelMode ChannelMode
BitsPerSample byte
}
func (*AptxConfiguration) MarshalParcel ¶
func (s *AptxConfiguration) MarshalParcel( p *parcel.Parcel, ) error
func (*AptxConfiguration) UnmarshalParcel ¶
func (s *AptxConfiguration) UnmarshalParcel( p *parcel.Parcel, ) error
type AptxSinkBuffering ¶
type AptxSinkBuffering struct {
MinLowLatency byte
MaxLowLatency byte
MinHighQuality byte
MaxHighQuality byte
MinTws byte
MaxTws byte
}
func (*AptxSinkBuffering) MarshalParcel ¶
func (s *AptxSinkBuffering) MarshalParcel( p *parcel.Parcel, ) error
func (*AptxSinkBuffering) UnmarshalParcel ¶
func (s *AptxSinkBuffering) UnmarshalParcel( p *parcel.Parcel, ) error
type AudioCapabilities ¶
type AudioCapabilities struct {
Tag int32
PcmCapabilities PcmCapabilities
A2dpCapabilities CodecCapabilities
LeAudioCapabilities LeAudioCodecCapabilitiesSetting
}
func (*AudioCapabilities) GetA2dpCapabilities ¶
func (u *AudioCapabilities) GetA2dpCapabilities() (CodecCapabilities, bool)
func (*AudioCapabilities) GetLeAudioCapabilities ¶
func (u *AudioCapabilities) GetLeAudioCapabilities() (LeAudioCodecCapabilitiesSetting, bool)
func (*AudioCapabilities) GetPcmCapabilities ¶
func (u *AudioCapabilities) GetPcmCapabilities() (PcmCapabilities, bool)
func (*AudioCapabilities) MarshalParcel ¶
func (u *AudioCapabilities) MarshalParcel( p *parcel.Parcel, ) error
func (*AudioCapabilities) SetA2dpCapabilities ¶
func (u *AudioCapabilities) SetA2dpCapabilities( v CodecCapabilities, )
func (*AudioCapabilities) SetLeAudioCapabilities ¶
func (u *AudioCapabilities) SetLeAudioCapabilities( v LeAudioCodecCapabilitiesSetting, )
func (*AudioCapabilities) SetPcmCapabilities ¶
func (u *AudioCapabilities) SetPcmCapabilities( v PcmCapabilities, )
func (*AudioCapabilities) UnmarshalParcel ¶
func (u *AudioCapabilities) UnmarshalParcel( p *parcel.Parcel, ) error
type AudioConfiguration ¶
type AudioConfiguration struct {
Tag int32
PcmConfig PcmConfiguration
A2dpConfig CodecConfiguration
LeAudioConfig LeAudioConfiguration
LeAudioBroadcastConfig LeAudioBroadcastConfiguration
HfpConfig HfpConfiguration
A2dp A2dpStreamConfiguration
}
func (*AudioConfiguration) GetA2dp ¶
func (u *AudioConfiguration) GetA2dp() (A2dpStreamConfiguration, bool)
func (*AudioConfiguration) GetA2dpConfig ¶
func (u *AudioConfiguration) GetA2dpConfig() (CodecConfiguration, bool)
func (*AudioConfiguration) GetHfpConfig ¶
func (u *AudioConfiguration) GetHfpConfig() (HfpConfiguration, bool)
func (*AudioConfiguration) GetLeAudioBroadcastConfig ¶
func (u *AudioConfiguration) GetLeAudioBroadcastConfig() (LeAudioBroadcastConfiguration, bool)
func (*AudioConfiguration) GetLeAudioConfig ¶
func (u *AudioConfiguration) GetLeAudioConfig() (LeAudioConfiguration, bool)
func (*AudioConfiguration) GetPcmConfig ¶
func (u *AudioConfiguration) GetPcmConfig() (PcmConfiguration, bool)
func (*AudioConfiguration) MarshalParcel ¶
func (u *AudioConfiguration) MarshalParcel( p *parcel.Parcel, ) error
func (*AudioConfiguration) SetA2dp ¶
func (u *AudioConfiguration) SetA2dp( v A2dpStreamConfiguration, )
func (*AudioConfiguration) SetA2dpConfig ¶
func (u *AudioConfiguration) SetA2dpConfig( v CodecConfiguration, )
func (*AudioConfiguration) SetHfpConfig ¶
func (u *AudioConfiguration) SetHfpConfig( v HfpConfiguration, )
func (*AudioConfiguration) SetLeAudioBroadcastConfig ¶
func (u *AudioConfiguration) SetLeAudioBroadcastConfig( v LeAudioBroadcastConfiguration, )
func (*AudioConfiguration) SetLeAudioConfig ¶
func (u *AudioConfiguration) SetLeAudioConfig( v LeAudioConfiguration, )
func (*AudioConfiguration) SetPcmConfig ¶
func (u *AudioConfiguration) SetPcmConfig( v PcmConfiguration, )
func (*AudioConfiguration) UnmarshalParcel ¶
func (u *AudioConfiguration) UnmarshalParcel( p *parcel.Parcel, ) error
type AudioContext ¶
type AudioContext struct {
Bitmask int32
}
func (*AudioContext) MarshalParcel ¶
func (s *AudioContext) MarshalParcel( p *parcel.Parcel, ) error
func (*AudioContext) UnmarshalParcel ¶
func (s *AudioContext) UnmarshalParcel( p *parcel.Parcel, ) error
type AudioLocation ¶
type AudioLocation int32
const ( AudioLocationUNKNOWN AudioLocation = 1 AudioLocationFrontLeft AudioLocation = (1 << 1) AudioLocationFrontRight AudioLocation = (1 << 2) )
type BluetoothAudioPortProxy ¶
func NewBluetoothAudioPortProxy ¶
func NewBluetoothAudioPortProxy( remote binder.IBinder, ) *BluetoothAudioPortProxy
func (*BluetoothAudioPortProxy) AsBinder ¶
func (p *BluetoothAudioPortProxy) AsBinder() binder.IBinder
func (*BluetoothAudioPortProxy) GetPresentationPosition ¶
func (p *BluetoothAudioPortProxy) GetPresentationPosition( ctx context.Context, ) (PresentationPosition, error)
func (*BluetoothAudioPortProxy) SetLatencyMode ¶
func (p *BluetoothAudioPortProxy) SetLatencyMode( ctx context.Context, latencyMode LatencyMode, ) error
func (*BluetoothAudioPortProxy) StartStream ¶
func (p *BluetoothAudioPortProxy) StartStream( ctx context.Context, isLowLatency bool, ) error
func (*BluetoothAudioPortProxy) StopStream ¶
func (p *BluetoothAudioPortProxy) StopStream( ctx context.Context, ) error
func (*BluetoothAudioPortProxy) SuspendStream ¶
func (p *BluetoothAudioPortProxy) SuspendStream( ctx context.Context, ) error
func (*BluetoothAudioPortProxy) UpdateSinkMetadata ¶
func (p *BluetoothAudioPortProxy) UpdateSinkMetadata( ctx context.Context, sinkMetadata common.SinkMetadata, ) error
func (*BluetoothAudioPortProxy) UpdateSourceMetadata ¶
func (p *BluetoothAudioPortProxy) UpdateSourceMetadata( ctx context.Context, sourceMetadata common.SourceMetadata, ) error
type BluetoothAudioPortStub ¶
type BluetoothAudioPortStub struct {
Impl IBluetoothAudioPort
Transport binder.VersionAwareTransport
}
BluetoothAudioPortStub dispatches incoming binder transactions to a typed IBluetoothAudioPort implementation.
func (*BluetoothAudioPortStub) Descriptor ¶
func (s *BluetoothAudioPortStub) Descriptor() string
func (*BluetoothAudioPortStub) OnTransaction ¶
func (s *BluetoothAudioPortStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
type BluetoothAudioProviderFactoryProxy ¶
func NewBluetoothAudioProviderFactoryProxy ¶
func NewBluetoothAudioProviderFactoryProxy( remote binder.IBinder, ) *BluetoothAudioProviderFactoryProxy
func (*BluetoothAudioProviderFactoryProxy) AsBinder ¶
func (p *BluetoothAudioProviderFactoryProxy) AsBinder() binder.IBinder
func (*BluetoothAudioProviderFactoryProxy) GetProviderCapabilities ¶
func (p *BluetoothAudioProviderFactoryProxy) GetProviderCapabilities( ctx context.Context, sessionType SessionType, ) ([]AudioCapabilities, error)
func (*BluetoothAudioProviderFactoryProxy) GetProviderInfo ¶
func (p *BluetoothAudioProviderFactoryProxy) GetProviderInfo( ctx context.Context, sessionType SessionType, ) (IBluetoothAudioProviderFactoryProviderInfo, error)
func (*BluetoothAudioProviderFactoryProxy) OpenProvider ¶
func (p *BluetoothAudioProviderFactoryProxy) OpenProvider( ctx context.Context, sessionType SessionType, ) (IBluetoothAudioProvider, error)
type BluetoothAudioProviderFactoryStub ¶
type BluetoothAudioProviderFactoryStub struct {
Impl IBluetoothAudioProviderFactory
Transport binder.VersionAwareTransport
}
BluetoothAudioProviderFactoryStub dispatches incoming binder transactions to a typed IBluetoothAudioProviderFactory implementation.
func (*BluetoothAudioProviderFactoryStub) Descriptor ¶
func (s *BluetoothAudioProviderFactoryStub) Descriptor() string
func (*BluetoothAudioProviderFactoryStub) OnTransaction ¶
func (s *BluetoothAudioProviderFactoryStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
type BluetoothAudioProviderProxy ¶
func NewBluetoothAudioProviderProxy ¶
func NewBluetoothAudioProviderProxy( remote binder.IBinder, ) *BluetoothAudioProviderProxy
func (*BluetoothAudioProviderProxy) AsBinder ¶
func (p *BluetoothAudioProviderProxy) AsBinder() binder.IBinder
func (*BluetoothAudioProviderProxy) EndSession ¶
func (p *BluetoothAudioProviderProxy) EndSession( ctx context.Context, ) error
func (*BluetoothAudioProviderProxy) GetA2dpConfiguration ¶
func (p *BluetoothAudioProviderProxy) GetA2dpConfiguration( ctx context.Context, remoteA2dpCapabilities []A2dpRemoteCapabilities, hint A2dpConfigurationHint, ) (A2dpConfiguration, error)
func (*BluetoothAudioProviderProxy) GetLeAudioAseConfiguration ¶
func (p *BluetoothAudioProviderProxy) GetLeAudioAseConfiguration( ctx context.Context, remoteSinkAudioCapabilities []IBluetoothAudioProviderLeAudioDeviceCapabilities, remoteSourceAudioCapabilities []IBluetoothAudioProviderLeAudioDeviceCapabilities, requirements []IBluetoothAudioProviderLeAudioConfigurationRequirement, ) ([]IBluetoothAudioProviderLeAudioAseConfigurationSetting, error)
func (*BluetoothAudioProviderProxy) GetLeAudioAseDatapathConfiguration ¶
func (p *BluetoothAudioProviderProxy) GetLeAudioAseDatapathConfiguration( ctx context.Context, sinkConfig *IBluetoothAudioProviderStreamConfig, sourceConfig *IBluetoothAudioProviderStreamConfig, ) (IBluetoothAudioProviderLeAudioDataPathConfigurationPair, error)
func (*BluetoothAudioProviderProxy) GetLeAudioAseQosConfiguration ¶
func (p *BluetoothAudioProviderProxy) GetLeAudioAseQosConfiguration( ctx context.Context, qosRequirement IBluetoothAudioProviderLeAudioAseQosConfigurationRequirement, ) (IBluetoothAudioProviderLeAudioAseQosConfigurationPair, error)
func (*BluetoothAudioProviderProxy) GetLeAudioBroadcastConfiguration ¶
func (p *BluetoothAudioProviderProxy) GetLeAudioBroadcastConfiguration( ctx context.Context, remoteSinkAudioCapabilities []IBluetoothAudioProviderLeAudioDeviceCapabilities, requirement IBluetoothAudioProviderLeAudioBroadcastConfigurationRequirement, ) (IBluetoothAudioProviderLeAudioBroadcastConfigurationSetting, error)
func (*BluetoothAudioProviderProxy) GetLeAudioBroadcastDatapathConfiguration ¶
func (p *BluetoothAudioProviderProxy) GetLeAudioBroadcastDatapathConfiguration( ctx context.Context, audioContext AudioContext, streamMap []LeAudioBroadcastConfigurationBroadcastStreamMap, ) (IBluetoothAudioProviderLeAudioDataPathConfiguration, error)
func (*BluetoothAudioProviderProxy) OnSinkAseMetadataChanged ¶
func (p *BluetoothAudioProviderProxy) OnSinkAseMetadataChanged( ctx context.Context, state IBluetoothAudioProviderAseState, cigId int32, cisId int32, metadata []MetadataLtv, ) error
func (*BluetoothAudioProviderProxy) OnSourceAseMetadataChanged ¶
func (p *BluetoothAudioProviderProxy) OnSourceAseMetadataChanged( ctx context.Context, state IBluetoothAudioProviderAseState, cigId int32, cisId int32, metadata []MetadataLtv, ) error
func (*BluetoothAudioProviderProxy) ParseA2dpConfiguration ¶
func (p *BluetoothAudioProviderProxy) ParseA2dpConfiguration( ctx context.Context, codecId CodecId, configuration []byte, codecParameters CodecParameters, ) (A2dpStatus, error)
func (*BluetoothAudioProviderProxy) SetCodecPriority ¶
func (*BluetoothAudioProviderProxy) SetLowLatencyModeAllowed ¶
func (p *BluetoothAudioProviderProxy) SetLowLatencyModeAllowed( ctx context.Context, allowed bool, ) error
func (*BluetoothAudioProviderProxy) StartSession ¶
func (p *BluetoothAudioProviderProxy) StartSession( ctx context.Context, hostIf IBluetoothAudioPort, audioConfig AudioConfiguration, supportedLatencyModes []LatencyMode, ) (fmq.MQDescriptor, error)
func (*BluetoothAudioProviderProxy) StreamStarted ¶
func (p *BluetoothAudioProviderProxy) StreamStarted( ctx context.Context, status BluetoothAudioStatus, ) error
func (*BluetoothAudioProviderProxy) StreamSuspended ¶
func (p *BluetoothAudioProviderProxy) StreamSuspended( ctx context.Context, status BluetoothAudioStatus, ) error
func (*BluetoothAudioProviderProxy) UpdateAudioConfiguration ¶
func (p *BluetoothAudioProviderProxy) UpdateAudioConfiguration( ctx context.Context, audioConfig AudioConfiguration, ) error
type BluetoothAudioProviderStub ¶
type BluetoothAudioProviderStub struct {
Impl IBluetoothAudioProvider
Transport binder.VersionAwareTransport
}
BluetoothAudioProviderStub dispatches incoming binder transactions to a typed IBluetoothAudioProvider implementation.
func (*BluetoothAudioProviderStub) Descriptor ¶
func (s *BluetoothAudioProviderStub) Descriptor() string
func (*BluetoothAudioProviderStub) OnTransaction ¶
func (s *BluetoothAudioProviderStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
type BluetoothAudioStatus ¶
type BluetoothAudioStatus int32
const ( BluetoothAudioStatusUNKNOWN BluetoothAudioStatus = 0 BluetoothAudioStatusSUCCESS BluetoothAudioStatus = 1 BluetoothAudioStatusUnsupportedCodecConfiguration BluetoothAudioStatus = 2 BluetoothAudioStatusFAILURE BluetoothAudioStatus = 3 BluetoothAudioStatusRECONFIGURATION BluetoothAudioStatus = 4 )
type BroadcastCapability ¶
type BroadcastCapability struct {
CodecType CodecType
SupportedChannel AudioLocation
ChannelCountPerStream int32
LeAudioCodecCapabilities BroadcastCapabilityLeAudioCodecCapabilities
}
func (*BroadcastCapability) MarshalParcel ¶
func (s *BroadcastCapability) MarshalParcel( p *parcel.Parcel, ) error
func (*BroadcastCapability) UnmarshalParcel ¶
func (s *BroadcastCapability) UnmarshalParcel( p *parcel.Parcel, ) error
type BroadcastCapabilityLeAudioCodecCapabilities ¶
type BroadcastCapabilityLeAudioCodecCapabilities struct {
Tag int32
Lc3Capabilities []Lc3Capabilities
VendorCapabillities []BroadcastCapabilityVendorCapabilities
}
func (*BroadcastCapabilityLeAudioCodecCapabilities) GetLc3Capabilities ¶
func (u *BroadcastCapabilityLeAudioCodecCapabilities) GetLc3Capabilities() ([]Lc3Capabilities, bool)
func (*BroadcastCapabilityLeAudioCodecCapabilities) GetVendorCapabillities ¶
func (u *BroadcastCapabilityLeAudioCodecCapabilities) GetVendorCapabillities() ([]BroadcastCapabilityVendorCapabilities, bool)
func (*BroadcastCapabilityLeAudioCodecCapabilities) MarshalParcel ¶
func (u *BroadcastCapabilityLeAudioCodecCapabilities) MarshalParcel( p *parcel.Parcel, ) error
func (*BroadcastCapabilityLeAudioCodecCapabilities) SetLc3Capabilities ¶
func (u *BroadcastCapabilityLeAudioCodecCapabilities) SetLc3Capabilities( v []Lc3Capabilities, )
func (*BroadcastCapabilityLeAudioCodecCapabilities) SetVendorCapabillities ¶
func (u *BroadcastCapabilityLeAudioCodecCapabilities) SetVendorCapabillities( v []BroadcastCapabilityVendorCapabilities, )
func (*BroadcastCapabilityLeAudioCodecCapabilities) UnmarshalParcel ¶
func (u *BroadcastCapabilityLeAudioCodecCapabilities) UnmarshalParcel( p *parcel.Parcel, ) error
type BroadcastCapabilityVendorCapabilities ¶
type BroadcastCapabilityVendorCapabilities struct {
Extension any
}
func (*BroadcastCapabilityVendorCapabilities) MarshalParcel ¶
func (s *BroadcastCapabilityVendorCapabilities) MarshalParcel( p *parcel.Parcel, ) error
func (*BroadcastCapabilityVendorCapabilities) UnmarshalParcel ¶
func (s *BroadcastCapabilityVendorCapabilities) UnmarshalParcel( p *parcel.Parcel, ) error
type ChannelMode ¶
type ChannelMode byte
const ( ChannelModeUNKNOWN ChannelMode = 0 ChannelModeMONO ChannelMode = 1 ChannelModeSTEREO ChannelMode = 2 ChannelModeDUALMONO ChannelMode = 3 )
type CodecCapabilities ¶
type CodecCapabilities struct {
CodecType CodecType
Capabilities CodecCapabilitiesCapabilities
}
func (*CodecCapabilities) MarshalParcel ¶
func (s *CodecCapabilities) MarshalParcel( p *parcel.Parcel, ) error
func (*CodecCapabilities) UnmarshalParcel ¶
func (s *CodecCapabilities) UnmarshalParcel( p *parcel.Parcel, ) error
type CodecCapabilitiesCapabilities ¶
type CodecCapabilitiesCapabilities struct {
Tag int32
SbcCapabilities SbcCapabilities
AacCapabilities AacCapabilities
LdacCapabilities LdacCapabilities
AptxCapabilities AptxCapabilities
AptxAdaptiveCapabilities AptxAdaptiveCapabilities
Lc3Capabilities Lc3Capabilities
VendorCapabilities CodecCapabilitiesVendorCapabilities
OpusCapabilities *OpusCapabilities
}
func (*CodecCapabilitiesCapabilities) GetAacCapabilities ¶
func (u *CodecCapabilitiesCapabilities) GetAacCapabilities() (AacCapabilities, bool)
func (*CodecCapabilitiesCapabilities) GetAptxAdaptiveCapabilities ¶
func (u *CodecCapabilitiesCapabilities) GetAptxAdaptiveCapabilities() (AptxAdaptiveCapabilities, bool)
func (*CodecCapabilitiesCapabilities) GetAptxCapabilities ¶
func (u *CodecCapabilitiesCapabilities) GetAptxCapabilities() (AptxCapabilities, bool)
func (*CodecCapabilitiesCapabilities) GetLc3Capabilities ¶
func (u *CodecCapabilitiesCapabilities) GetLc3Capabilities() (Lc3Capabilities, bool)
func (*CodecCapabilitiesCapabilities) GetLdacCapabilities ¶
func (u *CodecCapabilitiesCapabilities) GetLdacCapabilities() (LdacCapabilities, bool)
func (*CodecCapabilitiesCapabilities) GetOpusCapabilities ¶
func (u *CodecCapabilitiesCapabilities) GetOpusCapabilities() (*OpusCapabilities, bool)
func (*CodecCapabilitiesCapabilities) GetSbcCapabilities ¶
func (u *CodecCapabilitiesCapabilities) GetSbcCapabilities() (SbcCapabilities, bool)
func (*CodecCapabilitiesCapabilities) GetVendorCapabilities ¶
func (u *CodecCapabilitiesCapabilities) GetVendorCapabilities() (CodecCapabilitiesVendorCapabilities, bool)
func (*CodecCapabilitiesCapabilities) MarshalParcel ¶
func (u *CodecCapabilitiesCapabilities) MarshalParcel( p *parcel.Parcel, ) error
func (*CodecCapabilitiesCapabilities) SetAacCapabilities ¶
func (u *CodecCapabilitiesCapabilities) SetAacCapabilities( v AacCapabilities, )
func (*CodecCapabilitiesCapabilities) SetAptxAdaptiveCapabilities ¶
func (u *CodecCapabilitiesCapabilities) SetAptxAdaptiveCapabilities( v AptxAdaptiveCapabilities, )
func (*CodecCapabilitiesCapabilities) SetAptxCapabilities ¶
func (u *CodecCapabilitiesCapabilities) SetAptxCapabilities( v AptxCapabilities, )
func (*CodecCapabilitiesCapabilities) SetLc3Capabilities ¶
func (u *CodecCapabilitiesCapabilities) SetLc3Capabilities( v Lc3Capabilities, )
func (*CodecCapabilitiesCapabilities) SetLdacCapabilities ¶
func (u *CodecCapabilitiesCapabilities) SetLdacCapabilities( v LdacCapabilities, )
func (*CodecCapabilitiesCapabilities) SetOpusCapabilities ¶
func (u *CodecCapabilitiesCapabilities) SetOpusCapabilities( v *OpusCapabilities, )
func (*CodecCapabilitiesCapabilities) SetSbcCapabilities ¶
func (u *CodecCapabilitiesCapabilities) SetSbcCapabilities( v SbcCapabilities, )
func (*CodecCapabilitiesCapabilities) SetVendorCapabilities ¶
func (u *CodecCapabilitiesCapabilities) SetVendorCapabilities( v CodecCapabilitiesVendorCapabilities, )
func (*CodecCapabilitiesCapabilities) UnmarshalParcel ¶
func (u *CodecCapabilitiesCapabilities) UnmarshalParcel( p *parcel.Parcel, ) error
type CodecCapabilitiesVendorCapabilities ¶
type CodecCapabilitiesVendorCapabilities struct {
Extension any
}
func (*CodecCapabilitiesVendorCapabilities) MarshalParcel ¶
func (s *CodecCapabilitiesVendorCapabilities) MarshalParcel( p *parcel.Parcel, ) error
func (*CodecCapabilitiesVendorCapabilities) UnmarshalParcel ¶
func (s *CodecCapabilitiesVendorCapabilities) UnmarshalParcel( p *parcel.Parcel, ) error
type CodecConfiguration ¶
type CodecConfiguration struct {
CodecType CodecType
EncodedAudioBitrate int32
PeerMtu int32
IsScmstEnabled bool
Config CodecConfigurationCodecSpecific
}
func (*CodecConfiguration) MarshalParcel ¶
func (s *CodecConfiguration) MarshalParcel( p *parcel.Parcel, ) error
func (*CodecConfiguration) UnmarshalParcel ¶
func (s *CodecConfiguration) UnmarshalParcel( p *parcel.Parcel, ) error
type CodecConfigurationCodecSpecific ¶
type CodecConfigurationCodecSpecific struct {
Tag int32
SbcConfig SbcConfiguration
AacConfig AacConfiguration
LdacConfig LdacConfiguration
AptxConfig AptxConfiguration
AptxAdaptiveConfig AptxAdaptiveConfiguration
Lc3Config Lc3Configuration
VendorConfig CodecConfigurationVendorConfiguration
OpusConfig *OpusConfiguration
}
func (*CodecConfigurationCodecSpecific) GetAacConfig ¶
func (u *CodecConfigurationCodecSpecific) GetAacConfig() (AacConfiguration, bool)
func (*CodecConfigurationCodecSpecific) GetAptxAdaptiveConfig ¶
func (u *CodecConfigurationCodecSpecific) GetAptxAdaptiveConfig() (AptxAdaptiveConfiguration, bool)
func (*CodecConfigurationCodecSpecific) GetAptxConfig ¶
func (u *CodecConfigurationCodecSpecific) GetAptxConfig() (AptxConfiguration, bool)
func (*CodecConfigurationCodecSpecific) GetLc3Config ¶
func (u *CodecConfigurationCodecSpecific) GetLc3Config() (Lc3Configuration, bool)
func (*CodecConfigurationCodecSpecific) GetLdacConfig ¶
func (u *CodecConfigurationCodecSpecific) GetLdacConfig() (LdacConfiguration, bool)
func (*CodecConfigurationCodecSpecific) GetOpusConfig ¶
func (u *CodecConfigurationCodecSpecific) GetOpusConfig() (*OpusConfiguration, bool)
func (*CodecConfigurationCodecSpecific) GetSbcConfig ¶
func (u *CodecConfigurationCodecSpecific) GetSbcConfig() (SbcConfiguration, bool)
func (*CodecConfigurationCodecSpecific) GetVendorConfig ¶
func (u *CodecConfigurationCodecSpecific) GetVendorConfig() (CodecConfigurationVendorConfiguration, bool)
func (*CodecConfigurationCodecSpecific) MarshalParcel ¶
func (u *CodecConfigurationCodecSpecific) MarshalParcel( p *parcel.Parcel, ) error
func (*CodecConfigurationCodecSpecific) SetAacConfig ¶
func (u *CodecConfigurationCodecSpecific) SetAacConfig( v AacConfiguration, )
func (*CodecConfigurationCodecSpecific) SetAptxAdaptiveConfig ¶
func (u *CodecConfigurationCodecSpecific) SetAptxAdaptiveConfig( v AptxAdaptiveConfiguration, )
func (*CodecConfigurationCodecSpecific) SetAptxConfig ¶
func (u *CodecConfigurationCodecSpecific) SetAptxConfig( v AptxConfiguration, )
func (*CodecConfigurationCodecSpecific) SetLc3Config ¶
func (u *CodecConfigurationCodecSpecific) SetLc3Config( v Lc3Configuration, )
func (*CodecConfigurationCodecSpecific) SetLdacConfig ¶
func (u *CodecConfigurationCodecSpecific) SetLdacConfig( v LdacConfiguration, )
func (*CodecConfigurationCodecSpecific) SetOpusConfig ¶
func (u *CodecConfigurationCodecSpecific) SetOpusConfig( v *OpusConfiguration, )
func (*CodecConfigurationCodecSpecific) SetSbcConfig ¶
func (u *CodecConfigurationCodecSpecific) SetSbcConfig( v SbcConfiguration, )
func (*CodecConfigurationCodecSpecific) SetVendorConfig ¶
func (u *CodecConfigurationCodecSpecific) SetVendorConfig( v CodecConfigurationVendorConfiguration, )
func (*CodecConfigurationCodecSpecific) UnmarshalParcel ¶
func (u *CodecConfigurationCodecSpecific) UnmarshalParcel( p *parcel.Parcel, ) error
type CodecConfigurationVendorConfiguration ¶
func (*CodecConfigurationVendorConfiguration) MarshalParcel ¶
func (s *CodecConfigurationVendorConfiguration) MarshalParcel( p *parcel.Parcel, ) error
func (*CodecConfigurationVendorConfiguration) UnmarshalParcel ¶
func (s *CodecConfigurationVendorConfiguration) UnmarshalParcel( p *parcel.Parcel, ) error
type CodecId ¶
type CodecId struct {
Tag int32
A2dp CodecIdA2dp
Core CodecIdCore
Vendor CodecIdVendor
}
func (*CodecId) GetA2dp ¶
func (u *CodecId) GetA2dp() (CodecIdA2dp, bool)
func (*CodecId) GetCore ¶
func (u *CodecId) GetCore() (CodecIdCore, bool)
func (*CodecId) GetVendor ¶
func (u *CodecId) GetVendor() (CodecIdVendor, bool)
func (*CodecId) SetA2dp ¶
func (u *CodecId) SetA2dp( v CodecIdA2dp, )
func (*CodecId) SetCore ¶
func (u *CodecId) SetCore( v CodecIdCore, )
func (*CodecId) SetVendor ¶
func (u *CodecId) SetVendor( v CodecIdVendor, )
type CodecIdA2dp ¶
type CodecIdA2dp int32
const ( CodecIdA2dpSBC CodecIdA2dp = 0 CodecIdA2dpAAC CodecIdA2dp = 2 )
type CodecIdCore ¶
type CodecIdCore int32
const ( CodecIdCoreCVSD CodecIdCore = 2 CodecIdCoreMSBC CodecIdCore = 5 CodecIdCoreLC3 CodecIdCore = 6 )
type CodecIdVendor ¶
func (*CodecIdVendor) MarshalParcel ¶
func (s *CodecIdVendor) MarshalParcel( p *parcel.Parcel, ) error
func (*CodecIdVendor) UnmarshalParcel ¶
func (s *CodecIdVendor) UnmarshalParcel( p *parcel.Parcel, ) error
type CodecInfo ¶
type CodecInfo struct {
Id CodecId
Name string
Transport CodecInfoTransport
}
type CodecInfoA2dp ¶
type CodecInfoA2dp struct {
Capabilities []byte
ChannelMode []ChannelMode
SamplingFrequencyHz []int32
Bitdepth []int32
Lossless bool
}
func (*CodecInfoA2dp) MarshalParcel ¶
func (s *CodecInfoA2dp) MarshalParcel( p *parcel.Parcel, ) error
func (*CodecInfoA2dp) UnmarshalParcel ¶
func (s *CodecInfoA2dp) UnmarshalParcel( p *parcel.Parcel, ) error
type CodecInfoHfp ¶
func (*CodecInfoHfp) MarshalParcel ¶
func (s *CodecInfoHfp) MarshalParcel( p *parcel.Parcel, ) error
func (*CodecInfoHfp) UnmarshalParcel ¶
func (s *CodecInfoHfp) UnmarshalParcel( p *parcel.Parcel, ) error
type CodecInfoLeAudio ¶
type CodecInfoLeAudio struct {
ChannelMode []ChannelMode
SamplingFrequencyHz []int32
FrameDurationUs []int32
Bitdepth []int32
Flags *ConfigurationFlags
}
func (*CodecInfoLeAudio) MarshalParcel ¶
func (s *CodecInfoLeAudio) MarshalParcel( p *parcel.Parcel, ) error
func (*CodecInfoLeAudio) UnmarshalParcel ¶
func (s *CodecInfoLeAudio) UnmarshalParcel( p *parcel.Parcel, ) error
type CodecInfoTransport ¶
type CodecInfoTransport struct {
Tag int32
LeAudio CodecInfoLeAudio
A2dp CodecInfoA2dp
Hfp CodecInfoHfp
}
func (*CodecInfoTransport) GetA2dp ¶
func (u *CodecInfoTransport) GetA2dp() (CodecInfoA2dp, bool)
func (*CodecInfoTransport) GetHfp ¶
func (u *CodecInfoTransport) GetHfp() (CodecInfoHfp, bool)
func (*CodecInfoTransport) GetLeAudio ¶
func (u *CodecInfoTransport) GetLeAudio() (CodecInfoLeAudio, bool)
func (*CodecInfoTransport) MarshalParcel ¶
func (u *CodecInfoTransport) MarshalParcel( p *parcel.Parcel, ) error
func (*CodecInfoTransport) SetA2dp ¶
func (u *CodecInfoTransport) SetA2dp( v CodecInfoA2dp, )
func (*CodecInfoTransport) SetHfp ¶
func (u *CodecInfoTransport) SetHfp( v CodecInfoHfp, )
func (*CodecInfoTransport) SetLeAudio ¶
func (u *CodecInfoTransport) SetLeAudio( v CodecInfoLeAudio, )
func (*CodecInfoTransport) UnmarshalParcel ¶
func (u *CodecInfoTransport) UnmarshalParcel( p *parcel.Parcel, ) error
type CodecParameters ¶
type CodecParameters struct {
ChannelMode ChannelMode
SamplingFrequencyHz int32
Bitdepth int32
MinBitrate int32
MaxBitrate int32
LowLatency bool
Lossless bool
VendorSpecificParameters []byte
}
func (*CodecParameters) MarshalParcel ¶
func (s *CodecParameters) MarshalParcel( p *parcel.Parcel, ) error
func (*CodecParameters) UnmarshalParcel ¶
func (s *CodecParameters) UnmarshalParcel( p *parcel.Parcel, ) error
type CodecSpecificCapabilitiesLtv ¶
type CodecSpecificCapabilitiesLtv struct {
Tag int32
SupportedSamplingFrequencies CodecSpecificCapabilitiesLtvSupportedSamplingFrequencies
SupportedFrameDurations CodecSpecificCapabilitiesLtvSupportedFrameDurations
SupportedAudioChannelCounts CodecSpecificCapabilitiesLtvSupportedAudioChannelCounts
SupportedOctetsPerCodecFrame CodecSpecificCapabilitiesLtvSupportedOctetsPerCodecFrame
SupportedMaxCodecFramesPerSDU CodecSpecificCapabilitiesLtvSupportedMaxCodecFramesPerSDU
}
func (*CodecSpecificCapabilitiesLtv) GetSupportedAudioChannelCounts ¶
func (u *CodecSpecificCapabilitiesLtv) GetSupportedAudioChannelCounts() (CodecSpecificCapabilitiesLtvSupportedAudioChannelCounts, bool)
func (*CodecSpecificCapabilitiesLtv) GetSupportedFrameDurations ¶
func (u *CodecSpecificCapabilitiesLtv) GetSupportedFrameDurations() (CodecSpecificCapabilitiesLtvSupportedFrameDurations, bool)
func (*CodecSpecificCapabilitiesLtv) GetSupportedMaxCodecFramesPerSDU ¶
func (u *CodecSpecificCapabilitiesLtv) GetSupportedMaxCodecFramesPerSDU() (CodecSpecificCapabilitiesLtvSupportedMaxCodecFramesPerSDU, bool)
func (*CodecSpecificCapabilitiesLtv) GetSupportedOctetsPerCodecFrame ¶
func (u *CodecSpecificCapabilitiesLtv) GetSupportedOctetsPerCodecFrame() (CodecSpecificCapabilitiesLtvSupportedOctetsPerCodecFrame, bool)
func (*CodecSpecificCapabilitiesLtv) GetSupportedSamplingFrequencies ¶
func (u *CodecSpecificCapabilitiesLtv) GetSupportedSamplingFrequencies() (CodecSpecificCapabilitiesLtvSupportedSamplingFrequencies, bool)
func (*CodecSpecificCapabilitiesLtv) MarshalParcel ¶
func (u *CodecSpecificCapabilitiesLtv) MarshalParcel( p *parcel.Parcel, ) error
func (*CodecSpecificCapabilitiesLtv) SetSupportedAudioChannelCounts ¶
func (u *CodecSpecificCapabilitiesLtv) SetSupportedAudioChannelCounts( v CodecSpecificCapabilitiesLtvSupportedAudioChannelCounts, )
func (*CodecSpecificCapabilitiesLtv) SetSupportedFrameDurations ¶
func (u *CodecSpecificCapabilitiesLtv) SetSupportedFrameDurations( v CodecSpecificCapabilitiesLtvSupportedFrameDurations, )
func (*CodecSpecificCapabilitiesLtv) SetSupportedMaxCodecFramesPerSDU ¶
func (u *CodecSpecificCapabilitiesLtv) SetSupportedMaxCodecFramesPerSDU( v CodecSpecificCapabilitiesLtvSupportedMaxCodecFramesPerSDU, )
func (*CodecSpecificCapabilitiesLtv) SetSupportedOctetsPerCodecFrame ¶
func (u *CodecSpecificCapabilitiesLtv) SetSupportedOctetsPerCodecFrame( v CodecSpecificCapabilitiesLtvSupportedOctetsPerCodecFrame, )
func (*CodecSpecificCapabilitiesLtv) SetSupportedSamplingFrequencies ¶
func (u *CodecSpecificCapabilitiesLtv) SetSupportedSamplingFrequencies( v CodecSpecificCapabilitiesLtvSupportedSamplingFrequencies, )
func (*CodecSpecificCapabilitiesLtv) UnmarshalParcel ¶
func (u *CodecSpecificCapabilitiesLtv) UnmarshalParcel( p *parcel.Parcel, ) error
type CodecSpecificCapabilitiesLtvSupportedAudioChannelCounts ¶
type CodecSpecificCapabilitiesLtvSupportedAudioChannelCounts struct {
Bitmask int32
}
func (*CodecSpecificCapabilitiesLtvSupportedAudioChannelCounts) MarshalParcel ¶
func (s *CodecSpecificCapabilitiesLtvSupportedAudioChannelCounts) MarshalParcel( p *parcel.Parcel, ) error
func (*CodecSpecificCapabilitiesLtvSupportedAudioChannelCounts) UnmarshalParcel ¶
func (s *CodecSpecificCapabilitiesLtvSupportedAudioChannelCounts) UnmarshalParcel( p *parcel.Parcel, ) error
type CodecSpecificCapabilitiesLtvSupportedFrameDurations ¶
type CodecSpecificCapabilitiesLtvSupportedFrameDurations struct {
Bitmask int32
}
func (*CodecSpecificCapabilitiesLtvSupportedFrameDurations) MarshalParcel ¶
func (s *CodecSpecificCapabilitiesLtvSupportedFrameDurations) MarshalParcel( p *parcel.Parcel, ) error
func (*CodecSpecificCapabilitiesLtvSupportedFrameDurations) UnmarshalParcel ¶
func (s *CodecSpecificCapabilitiesLtvSupportedFrameDurations) UnmarshalParcel( p *parcel.Parcel, ) error
type CodecSpecificCapabilitiesLtvSupportedMaxCodecFramesPerSDU ¶
type CodecSpecificCapabilitiesLtvSupportedMaxCodecFramesPerSDU struct {
Value int32
}
func (*CodecSpecificCapabilitiesLtvSupportedMaxCodecFramesPerSDU) MarshalParcel ¶
func (s *CodecSpecificCapabilitiesLtvSupportedMaxCodecFramesPerSDU) MarshalParcel( p *parcel.Parcel, ) error
func (*CodecSpecificCapabilitiesLtvSupportedMaxCodecFramesPerSDU) UnmarshalParcel ¶
func (s *CodecSpecificCapabilitiesLtvSupportedMaxCodecFramesPerSDU) UnmarshalParcel( p *parcel.Parcel, ) error
type CodecSpecificCapabilitiesLtvSupportedOctetsPerCodecFrame ¶
func (*CodecSpecificCapabilitiesLtvSupportedOctetsPerCodecFrame) MarshalParcel ¶
func (s *CodecSpecificCapabilitiesLtvSupportedOctetsPerCodecFrame) MarshalParcel( p *parcel.Parcel, ) error
func (*CodecSpecificCapabilitiesLtvSupportedOctetsPerCodecFrame) UnmarshalParcel ¶
func (s *CodecSpecificCapabilitiesLtvSupportedOctetsPerCodecFrame) UnmarshalParcel( p *parcel.Parcel, ) error
type CodecSpecificCapabilitiesLtvSupportedSamplingFrequencies ¶
type CodecSpecificCapabilitiesLtvSupportedSamplingFrequencies struct {
Bitmask int32
}
func (*CodecSpecificCapabilitiesLtvSupportedSamplingFrequencies) MarshalParcel ¶
func (s *CodecSpecificCapabilitiesLtvSupportedSamplingFrequencies) MarshalParcel( p *parcel.Parcel, ) error
func (*CodecSpecificCapabilitiesLtvSupportedSamplingFrequencies) UnmarshalParcel ¶
func (s *CodecSpecificCapabilitiesLtvSupportedSamplingFrequencies) UnmarshalParcel( p *parcel.Parcel, ) error
type CodecSpecificConfigurationLtv ¶
type CodecSpecificConfigurationLtv struct {
Tag int32
CodecFrameBlocksPerSDU CodecSpecificConfigurationLtvCodecFrameBlocksPerSDU
SamplingFrequency CodecSpecificConfigurationLtvSamplingFrequency
FrameDuration CodecSpecificConfigurationLtvFrameDuration
AudioChannelAllocation CodecSpecificConfigurationLtvAudioChannelAllocation
OctetsPerCodecFrame CodecSpecificConfigurationLtvOctetsPerCodecFrame
}
func (*CodecSpecificConfigurationLtv) GetAudioChannelAllocation ¶
func (u *CodecSpecificConfigurationLtv) GetAudioChannelAllocation() (CodecSpecificConfigurationLtvAudioChannelAllocation, bool)
func (*CodecSpecificConfigurationLtv) GetCodecFrameBlocksPerSDU ¶
func (u *CodecSpecificConfigurationLtv) GetCodecFrameBlocksPerSDU() (CodecSpecificConfigurationLtvCodecFrameBlocksPerSDU, bool)
func (*CodecSpecificConfigurationLtv) GetFrameDuration ¶
func (u *CodecSpecificConfigurationLtv) GetFrameDuration() (CodecSpecificConfigurationLtvFrameDuration, bool)
func (*CodecSpecificConfigurationLtv) GetOctetsPerCodecFrame ¶
func (u *CodecSpecificConfigurationLtv) GetOctetsPerCodecFrame() (CodecSpecificConfigurationLtvOctetsPerCodecFrame, bool)
func (*CodecSpecificConfigurationLtv) GetSamplingFrequency ¶
func (u *CodecSpecificConfigurationLtv) GetSamplingFrequency() (CodecSpecificConfigurationLtvSamplingFrequency, bool)
func (*CodecSpecificConfigurationLtv) MarshalParcel ¶
func (u *CodecSpecificConfigurationLtv) MarshalParcel( p *parcel.Parcel, ) error
func (*CodecSpecificConfigurationLtv) SetAudioChannelAllocation ¶
func (u *CodecSpecificConfigurationLtv) SetAudioChannelAllocation( v CodecSpecificConfigurationLtvAudioChannelAllocation, )
func (*CodecSpecificConfigurationLtv) SetCodecFrameBlocksPerSDU ¶
func (u *CodecSpecificConfigurationLtv) SetCodecFrameBlocksPerSDU( v CodecSpecificConfigurationLtvCodecFrameBlocksPerSDU, )
func (*CodecSpecificConfigurationLtv) SetFrameDuration ¶
func (u *CodecSpecificConfigurationLtv) SetFrameDuration( v CodecSpecificConfigurationLtvFrameDuration, )
func (*CodecSpecificConfigurationLtv) SetOctetsPerCodecFrame ¶
func (u *CodecSpecificConfigurationLtv) SetOctetsPerCodecFrame( v CodecSpecificConfigurationLtvOctetsPerCodecFrame, )
func (*CodecSpecificConfigurationLtv) SetSamplingFrequency ¶
func (u *CodecSpecificConfigurationLtv) SetSamplingFrequency( v CodecSpecificConfigurationLtvSamplingFrequency, )
func (*CodecSpecificConfigurationLtv) UnmarshalParcel ¶
func (u *CodecSpecificConfigurationLtv) UnmarshalParcel( p *parcel.Parcel, ) error
type CodecSpecificConfigurationLtvAudioChannelAllocation ¶
type CodecSpecificConfigurationLtvAudioChannelAllocation struct {
Bitmask int32
}
func (*CodecSpecificConfigurationLtvAudioChannelAllocation) MarshalParcel ¶
func (s *CodecSpecificConfigurationLtvAudioChannelAllocation) MarshalParcel( p *parcel.Parcel, ) error
func (*CodecSpecificConfigurationLtvAudioChannelAllocation) UnmarshalParcel ¶
func (s *CodecSpecificConfigurationLtvAudioChannelAllocation) UnmarshalParcel( p *parcel.Parcel, ) error
type CodecSpecificConfigurationLtvCodecFrameBlocksPerSDU ¶
type CodecSpecificConfigurationLtvCodecFrameBlocksPerSDU struct {
Value int32
}
func (*CodecSpecificConfigurationLtvCodecFrameBlocksPerSDU) MarshalParcel ¶
func (s *CodecSpecificConfigurationLtvCodecFrameBlocksPerSDU) MarshalParcel( p *parcel.Parcel, ) error
func (*CodecSpecificConfigurationLtvCodecFrameBlocksPerSDU) UnmarshalParcel ¶
func (s *CodecSpecificConfigurationLtvCodecFrameBlocksPerSDU) UnmarshalParcel( p *parcel.Parcel, ) error
type CodecSpecificConfigurationLtvFrameDuration ¶
type CodecSpecificConfigurationLtvFrameDuration byte
const ( CodecSpecificConfigurationLtvFrameDurationUS7500 CodecSpecificConfigurationLtvFrameDuration = 0 CodecSpecificConfigurationLtvFrameDurationUS10000 CodecSpecificConfigurationLtvFrameDuration = 1 )
type CodecSpecificConfigurationLtvOctetsPerCodecFrame ¶
type CodecSpecificConfigurationLtvOctetsPerCodecFrame struct {
Value int32
}
func (*CodecSpecificConfigurationLtvOctetsPerCodecFrame) MarshalParcel ¶
func (s *CodecSpecificConfigurationLtvOctetsPerCodecFrame) MarshalParcel( p *parcel.Parcel, ) error
func (*CodecSpecificConfigurationLtvOctetsPerCodecFrame) UnmarshalParcel ¶
func (s *CodecSpecificConfigurationLtvOctetsPerCodecFrame) UnmarshalParcel( p *parcel.Parcel, ) error
type CodecSpecificConfigurationLtvSamplingFrequency ¶
type CodecSpecificConfigurationLtvSamplingFrequency byte
const ( CodecSpecificConfigurationLtvSamplingFrequencyHZ8000 CodecSpecificConfigurationLtvSamplingFrequency = 1 CodecSpecificConfigurationLtvSamplingFrequencyHZ11025 CodecSpecificConfigurationLtvSamplingFrequency = 2 CodecSpecificConfigurationLtvSamplingFrequencyHZ16000 CodecSpecificConfigurationLtvSamplingFrequency = 3 CodecSpecificConfigurationLtvSamplingFrequencyHZ22050 CodecSpecificConfigurationLtvSamplingFrequency = 4 CodecSpecificConfigurationLtvSamplingFrequencyHZ24000 CodecSpecificConfigurationLtvSamplingFrequency = 5 CodecSpecificConfigurationLtvSamplingFrequencyHZ32000 CodecSpecificConfigurationLtvSamplingFrequency = 6 CodecSpecificConfigurationLtvSamplingFrequencyHZ44100 CodecSpecificConfigurationLtvSamplingFrequency = 7 CodecSpecificConfigurationLtvSamplingFrequencyHZ48000 CodecSpecificConfigurationLtvSamplingFrequency = 8 CodecSpecificConfigurationLtvSamplingFrequencyHZ88200 CodecSpecificConfigurationLtvSamplingFrequency = 9 CodecSpecificConfigurationLtvSamplingFrequencyHZ96000 CodecSpecificConfigurationLtvSamplingFrequency = 10 CodecSpecificConfigurationLtvSamplingFrequencyHZ176400 CodecSpecificConfigurationLtvSamplingFrequency = 11 CodecSpecificConfigurationLtvSamplingFrequencyHZ192000 CodecSpecificConfigurationLtvSamplingFrequency = 12 CodecSpecificConfigurationLtvSamplingFrequencyHZ384000 CodecSpecificConfigurationLtvSamplingFrequency = 13 )
type CodecType ¶
type CodecType int32
const ( CodecTypeUNKNOWN CodecType = 0 CodecTypeSBC CodecType = 1 CodecTypeAAC CodecType = 2 CodecTypeAPTX CodecType = 3 CodecTypeAptxHd CodecType = 4 CodecTypeLDAC CodecType = 5 CodecTypeLC3 CodecType = 6 CodecTypeVENDOR CodecType = 7 CodecTypeAptxAdaptive CodecType = 8 CodecTypeOPUS CodecType = 9 CodecTypeAptxAdaptiveLe CodecType = 10 CodecTypeAptxAdaptiveLex CodecType = 11 )
type ConfigurationFlags ¶
type ConfigurationFlags struct {
Bitmask int32
}
func (*ConfigurationFlags) MarshalParcel ¶
func (s *ConfigurationFlags) MarshalParcel( p *parcel.Parcel, ) error
func (*ConfigurationFlags) UnmarshalParcel ¶
func (s *ConfigurationFlags) UnmarshalParcel( p *parcel.Parcel, ) error
type HfpConfiguration ¶
type HfpConfiguration struct {
CodecId CodecId
ConnectionHandle int32
Nrec bool
ControllerCodec bool
}
func (*HfpConfiguration) MarshalParcel ¶
func (s *HfpConfiguration) MarshalParcel( p *parcel.Parcel, ) error
func (*HfpConfiguration) UnmarshalParcel ¶
func (s *HfpConfiguration) UnmarshalParcel( p *parcel.Parcel, ) error
type IBluetoothAudioPort ¶
type IBluetoothAudioPort interface {
AsBinder() binder.IBinder
GetPresentationPosition(ctx context.Context) (PresentationPosition, error)
StartStream(ctx context.Context, isLowLatency bool) error
StopStream(ctx context.Context) error
SuspendStream(ctx context.Context) error
UpdateSourceMetadata(ctx context.Context, sourceMetadata common.SourceMetadata) error
UpdateSinkMetadata(ctx context.Context, sinkMetadata common.SinkMetadata) error
SetLatencyMode(ctx context.Context, latencyMode LatencyMode) error
}
func NewBluetoothAudioPortStub ¶
func NewBluetoothAudioPortStub( impl IBluetoothAudioPortServer, ) IBluetoothAudioPort
NewBluetoothAudioPortStub creates a server-side IBluetoothAudioPort wrapping the given server implementation. The returned value satisfies IBluetoothAudioPort 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 IBluetoothAudioPortServer ¶
type IBluetoothAudioPortServer interface {
GetPresentationPosition(ctx context.Context) (PresentationPosition, error)
StartStream(ctx context.Context, isLowLatency bool) error
StopStream(ctx context.Context) error
SuspendStream(ctx context.Context) error
UpdateSourceMetadata(ctx context.Context, sourceMetadata common.SourceMetadata) error
UpdateSinkMetadata(ctx context.Context, sinkMetadata common.SinkMetadata) error
SetLatencyMode(ctx context.Context, latencyMode LatencyMode) error
}
IBluetoothAudioPortServer is the server-side interface that user implementations provide to NewBluetoothAudioPortStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type IBluetoothAudioProvider ¶
type IBluetoothAudioProvider interface {
AsBinder() binder.IBinder
EndSession(ctx context.Context) error
StartSession(ctx context.Context, hostIf IBluetoothAudioPort, audioConfig AudioConfiguration, supportedLatencyModes []LatencyMode) (fmq.MQDescriptor, error)
StreamStarted(ctx context.Context, status BluetoothAudioStatus) error
StreamSuspended(ctx context.Context, status BluetoothAudioStatus) error
UpdateAudioConfiguration(ctx context.Context, audioConfig AudioConfiguration) error
SetLowLatencyModeAllowed(ctx context.Context, allowed bool) error
ParseA2dpConfiguration(ctx context.Context, codecId CodecId, configuration []byte, codecParameters CodecParameters) (A2dpStatus, error)
GetA2dpConfiguration(ctx context.Context, remoteA2dpCapabilities []A2dpRemoteCapabilities, hint A2dpConfigurationHint) (A2dpConfiguration, error)
SetCodecPriority(ctx context.Context, codecId CodecId, priority int32) error
GetLeAudioAseConfiguration(ctx context.Context, remoteSinkAudioCapabilities []IBluetoothAudioProviderLeAudioDeviceCapabilities, remoteSourceAudioCapabilities []IBluetoothAudioProviderLeAudioDeviceCapabilities, requirements []IBluetoothAudioProviderLeAudioConfigurationRequirement) ([]IBluetoothAudioProviderLeAudioAseConfigurationSetting, error)
GetLeAudioAseQosConfiguration(ctx context.Context, qosRequirement IBluetoothAudioProviderLeAudioAseQosConfigurationRequirement) (IBluetoothAudioProviderLeAudioAseQosConfigurationPair, error)
GetLeAudioAseDatapathConfiguration(ctx context.Context, sinkConfig *IBluetoothAudioProviderStreamConfig, sourceConfig *IBluetoothAudioProviderStreamConfig) (IBluetoothAudioProviderLeAudioDataPathConfigurationPair, error)
OnSinkAseMetadataChanged(ctx context.Context, state IBluetoothAudioProviderAseState, cigId int32, cisId int32, metadata []MetadataLtv) error
OnSourceAseMetadataChanged(ctx context.Context, state IBluetoothAudioProviderAseState, cigId int32, cisId int32, metadata []MetadataLtv) error
GetLeAudioBroadcastConfiguration(ctx context.Context, remoteSinkAudioCapabilities []IBluetoothAudioProviderLeAudioDeviceCapabilities, requirement IBluetoothAudioProviderLeAudioBroadcastConfigurationRequirement) (IBluetoothAudioProviderLeAudioBroadcastConfigurationSetting, error)
GetLeAudioBroadcastDatapathConfiguration(ctx context.Context, audioContext AudioContext, streamMap []LeAudioBroadcastConfigurationBroadcastStreamMap) (IBluetoothAudioProviderLeAudioDataPathConfiguration, error)
}
func NewBluetoothAudioProviderStub ¶
func NewBluetoothAudioProviderStub( impl IBluetoothAudioProviderServer, ) IBluetoothAudioProvider
NewBluetoothAudioProviderStub creates a server-side IBluetoothAudioProvider wrapping the given server implementation. The returned value satisfies IBluetoothAudioProvider 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 IBluetoothAudioProviderAseState ¶
type IBluetoothAudioProviderAseState byte
const ( IBluetoothAudioProviderAseStateENABLING IBluetoothAudioProviderAseState = 0 IBluetoothAudioProviderAseStateSTREAMING IBluetoothAudioProviderAseState = 1 IBluetoothAudioProviderAseStateDISABLING IBluetoothAudioProviderAseState = 2 )
type IBluetoothAudioProviderBroadcastQuality ¶
type IBluetoothAudioProviderBroadcastQuality byte
const ( IBluetoothAudioProviderBroadcastQualitySTANDARD IBluetoothAudioProviderBroadcastQuality = 0 IBluetoothAudioProviderBroadcastQualityHIGH IBluetoothAudioProviderBroadcastQuality = 1 )
type IBluetoothAudioProviderFactory ¶
type IBluetoothAudioProviderFactory interface {
AsBinder() binder.IBinder
GetProviderCapabilities(ctx context.Context, sessionType SessionType) ([]AudioCapabilities, error)
OpenProvider(ctx context.Context, sessionType SessionType) (IBluetoothAudioProvider, error)
GetProviderInfo(ctx context.Context, sessionType SessionType) (IBluetoothAudioProviderFactoryProviderInfo, error)
}
func NewBluetoothAudioProviderFactoryStub ¶
func NewBluetoothAudioProviderFactoryStub( impl IBluetoothAudioProviderFactoryServer, ) IBluetoothAudioProviderFactory
NewBluetoothAudioProviderFactoryStub creates a server-side IBluetoothAudioProviderFactory wrapping the given server implementation. The returned value satisfies IBluetoothAudioProviderFactory 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 IBluetoothAudioProviderFactoryProviderInfo ¶
type IBluetoothAudioProviderFactoryProviderInfo struct {
Name string
CodecInfos []CodecInfo
SupportsMultidirectionalCapabilities bool
}
func (*IBluetoothAudioProviderFactoryProviderInfo) MarshalParcel ¶
func (s *IBluetoothAudioProviderFactoryProviderInfo) MarshalParcel( p *parcel.Parcel, ) error
func (*IBluetoothAudioProviderFactoryProviderInfo) UnmarshalParcel ¶
func (s *IBluetoothAudioProviderFactoryProviderInfo) UnmarshalParcel( p *parcel.Parcel, ) error
type IBluetoothAudioProviderFactoryServer ¶
type IBluetoothAudioProviderFactoryServer interface {
GetProviderCapabilities(ctx context.Context, sessionType SessionType) ([]AudioCapabilities, error)
OpenProvider(ctx context.Context, sessionType SessionType) (IBluetoothAudioProvider, error)
GetProviderInfo(ctx context.Context, sessionType SessionType) (IBluetoothAudioProviderFactoryProviderInfo, error)
}
IBluetoothAudioProviderFactoryServer is the server-side interface that user implementations provide to NewBluetoothAudioProviderFactoryStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type IBluetoothAudioProviderFraming ¶
type IBluetoothAudioProviderFraming byte
const ( IBluetoothAudioProviderFramingUNFRAMED IBluetoothAudioProviderFraming = 0 IBluetoothAudioProviderFramingFRAMED IBluetoothAudioProviderFraming = 1 )
type IBluetoothAudioProviderLeAudioAseConfigurationSetting ¶
type IBluetoothAudioProviderLeAudioAseConfigurationSetting struct {
AudioContext AudioContext
Packing IBluetoothAudioProviderPacking
SinkAseConfiguration []IBluetoothAudioProviderLeAudioAseConfigurationSettingAseDirectionConfiguration
SourceAseConfiguration []IBluetoothAudioProviderLeAudioAseConfigurationSettingAseDirectionConfiguration
Flags *ConfigurationFlags
}
func (*IBluetoothAudioProviderLeAudioAseConfigurationSetting) MarshalParcel ¶
func (s *IBluetoothAudioProviderLeAudioAseConfigurationSetting) MarshalParcel( p *parcel.Parcel, ) error
func (*IBluetoothAudioProviderLeAudioAseConfigurationSetting) UnmarshalParcel ¶
func (s *IBluetoothAudioProviderLeAudioAseConfigurationSetting) UnmarshalParcel( p *parcel.Parcel, ) error
type IBluetoothAudioProviderLeAudioAseConfigurationSettingAseDirectionConfiguration ¶
type IBluetoothAudioProviderLeAudioAseConfigurationSettingAseDirectionConfiguration struct {
AseConfiguration LeAudioAseConfiguration
QosConfiguration *IBluetoothAudioProviderLeAudioAseQosConfiguration
DataPathConfiguration *IBluetoothAudioProviderLeAudioDataPathConfiguration
}
func (*IBluetoothAudioProviderLeAudioAseConfigurationSettingAseDirectionConfiguration) MarshalParcel ¶
func (s *IBluetoothAudioProviderLeAudioAseConfigurationSettingAseDirectionConfiguration) MarshalParcel( p *parcel.Parcel, ) error
func (*IBluetoothAudioProviderLeAudioAseConfigurationSettingAseDirectionConfiguration) UnmarshalParcel ¶
func (s *IBluetoothAudioProviderLeAudioAseConfigurationSettingAseDirectionConfiguration) UnmarshalParcel( p *parcel.Parcel, ) error
type IBluetoothAudioProviderLeAudioAseQosConfiguration ¶
type IBluetoothAudioProviderLeAudioAseQosConfiguration struct {
SduIntervalUs int32
Framing IBluetoothAudioProviderFraming
Phy []Phy
MaxTransportLatencyMs int32
MaxSdu int32
RetransmissionNum int32
}
func (*IBluetoothAudioProviderLeAudioAseQosConfiguration) MarshalParcel ¶
func (s *IBluetoothAudioProviderLeAudioAseQosConfiguration) MarshalParcel( p *parcel.Parcel, ) error
func (*IBluetoothAudioProviderLeAudioAseQosConfiguration) UnmarshalParcel ¶
func (s *IBluetoothAudioProviderLeAudioAseQosConfiguration) UnmarshalParcel( p *parcel.Parcel, ) error
type IBluetoothAudioProviderLeAudioAseQosConfigurationPair ¶
type IBluetoothAudioProviderLeAudioAseQosConfigurationPair struct {
SinkQosConfiguration *IBluetoothAudioProviderLeAudioAseQosConfiguration
SourceQosConfiguration *IBluetoothAudioProviderLeAudioAseQosConfiguration
}
func (*IBluetoothAudioProviderLeAudioAseQosConfigurationPair) MarshalParcel ¶
func (s *IBluetoothAudioProviderLeAudioAseQosConfigurationPair) MarshalParcel( p *parcel.Parcel, ) error
func (*IBluetoothAudioProviderLeAudioAseQosConfigurationPair) UnmarshalParcel ¶
func (s *IBluetoothAudioProviderLeAudioAseQosConfigurationPair) UnmarshalParcel( p *parcel.Parcel, ) error
type IBluetoothAudioProviderLeAudioAseQosConfigurationRequirement ¶
type IBluetoothAudioProviderLeAudioAseQosConfigurationRequirement struct {
AudioContext AudioContext
SinkAseQosRequirement *IBluetoothAudioProviderLeAudioAseQosConfigurationRequirementAseQosDirectionRequirement
SourceAseQosRequirement *IBluetoothAudioProviderLeAudioAseQosConfigurationRequirementAseQosDirectionRequirement
Flags *ConfigurationFlags
}
func (*IBluetoothAudioProviderLeAudioAseQosConfigurationRequirement) MarshalParcel ¶
func (s *IBluetoothAudioProviderLeAudioAseQosConfigurationRequirement) MarshalParcel( p *parcel.Parcel, ) error
func (*IBluetoothAudioProviderLeAudioAseQosConfigurationRequirement) UnmarshalParcel ¶
func (s *IBluetoothAudioProviderLeAudioAseQosConfigurationRequirement) UnmarshalParcel( p *parcel.Parcel, ) error
type IBluetoothAudioProviderLeAudioAseQosConfigurationRequirementAseQosDirectionRequirement ¶
type IBluetoothAudioProviderLeAudioAseQosConfigurationRequirementAseQosDirectionRequirement struct {
Framing IBluetoothAudioProviderFraming
PreferredPhy []Phy
PreferredRetransmissionNum int32
MaxTransportLatencyMs int32
PresentationDelayMinUs int32
PresentationDelayMaxUs int32
PreferredPresentationDelayMinUs int32
PreferredPresentationDelayMaxUs int32
AseConfiguration LeAudioAseConfiguration
}
func (*IBluetoothAudioProviderLeAudioAseQosConfigurationRequirementAseQosDirectionRequirement) MarshalParcel ¶
func (s *IBluetoothAudioProviderLeAudioAseQosConfigurationRequirementAseQosDirectionRequirement) MarshalParcel( p *parcel.Parcel, ) error
func (*IBluetoothAudioProviderLeAudioAseQosConfigurationRequirementAseQosDirectionRequirement) UnmarshalParcel ¶
func (s *IBluetoothAudioProviderLeAudioAseQosConfigurationRequirementAseQosDirectionRequirement) UnmarshalParcel( p *parcel.Parcel, ) error
type IBluetoothAudioProviderLeAudioBroadcastConfigurationRequirement ¶
type IBluetoothAudioProviderLeAudioBroadcastConfigurationRequirement struct {
SubgroupConfigurationRequirements []IBluetoothAudioProviderLeAudioBroadcastSubgroupConfigurationRequirement
}
func (*IBluetoothAudioProviderLeAudioBroadcastConfigurationRequirement) MarshalParcel ¶
func (s *IBluetoothAudioProviderLeAudioBroadcastConfigurationRequirement) MarshalParcel( p *parcel.Parcel, ) error
func (*IBluetoothAudioProviderLeAudioBroadcastConfigurationRequirement) UnmarshalParcel ¶
func (s *IBluetoothAudioProviderLeAudioBroadcastConfigurationRequirement) UnmarshalParcel( p *parcel.Parcel, ) error
type IBluetoothAudioProviderLeAudioBroadcastConfigurationSetting ¶
type IBluetoothAudioProviderLeAudioBroadcastConfigurationSetting struct {
SduIntervalUs int32
NumBis int32
MaxSduOctets int32
MaxTransportLatencyMs int32
RetransmitionNum int32
Phy []Phy
Packing IBluetoothAudioProviderPacking
Framing IBluetoothAudioProviderFraming
DataPathConfiguration *IBluetoothAudioProviderLeAudioDataPathConfiguration
SubgroupsConfigurations []IBluetoothAudioProviderLeAudioBroadcastSubgroupConfiguration
}
func (*IBluetoothAudioProviderLeAudioBroadcastConfigurationSetting) MarshalParcel ¶
func (s *IBluetoothAudioProviderLeAudioBroadcastConfigurationSetting) MarshalParcel( p *parcel.Parcel, ) error
func (*IBluetoothAudioProviderLeAudioBroadcastConfigurationSetting) UnmarshalParcel ¶
func (s *IBluetoothAudioProviderLeAudioBroadcastConfigurationSetting) UnmarshalParcel( p *parcel.Parcel, ) error
type IBluetoothAudioProviderLeAudioBroadcastSubgroupConfiguration ¶
type IBluetoothAudioProviderLeAudioBroadcastSubgroupConfiguration struct {
BisConfigurations []IBluetoothAudioProviderLeAudioSubgroupBisConfiguration
VendorCodecConfiguration []byte
}
func (*IBluetoothAudioProviderLeAudioBroadcastSubgroupConfiguration) MarshalParcel ¶
func (s *IBluetoothAudioProviderLeAudioBroadcastSubgroupConfiguration) MarshalParcel( p *parcel.Parcel, ) error
func (*IBluetoothAudioProviderLeAudioBroadcastSubgroupConfiguration) UnmarshalParcel ¶
func (s *IBluetoothAudioProviderLeAudioBroadcastSubgroupConfiguration) UnmarshalParcel( p *parcel.Parcel, ) error
type IBluetoothAudioProviderLeAudioBroadcastSubgroupConfigurationRequirement ¶
type IBluetoothAudioProviderLeAudioBroadcastSubgroupConfigurationRequirement struct {
AudioContext AudioContext
Quality IBluetoothAudioProviderBroadcastQuality
BisNumPerSubgroup int32
}
func (*IBluetoothAudioProviderLeAudioBroadcastSubgroupConfigurationRequirement) MarshalParcel ¶
func (s *IBluetoothAudioProviderLeAudioBroadcastSubgroupConfigurationRequirement) MarshalParcel( p *parcel.Parcel, ) error
func (*IBluetoothAudioProviderLeAudioBroadcastSubgroupConfigurationRequirement) UnmarshalParcel ¶
func (s *IBluetoothAudioProviderLeAudioBroadcastSubgroupConfigurationRequirement) UnmarshalParcel( p *parcel.Parcel, ) error
type IBluetoothAudioProviderLeAudioConfigurationRequirement ¶
type IBluetoothAudioProviderLeAudioConfigurationRequirement struct {
AudioContext AudioContext
SinkAseRequirement []IBluetoothAudioProviderLeAudioConfigurationRequirementAseDirectionRequirement
SourceAseRequirement []IBluetoothAudioProviderLeAudioConfigurationRequirementAseDirectionRequirement
Flags *ConfigurationFlags
}
func (*IBluetoothAudioProviderLeAudioConfigurationRequirement) MarshalParcel ¶
func (s *IBluetoothAudioProviderLeAudioConfigurationRequirement) MarshalParcel( p *parcel.Parcel, ) error
func (*IBluetoothAudioProviderLeAudioConfigurationRequirement) UnmarshalParcel ¶
func (s *IBluetoothAudioProviderLeAudioConfigurationRequirement) UnmarshalParcel( p *parcel.Parcel, ) error
type IBluetoothAudioProviderLeAudioConfigurationRequirementAseDirectionRequirement ¶
type IBluetoothAudioProviderLeAudioConfigurationRequirementAseDirectionRequirement struct {
AseConfiguration LeAudioAseConfiguration
}
func (*IBluetoothAudioProviderLeAudioConfigurationRequirementAseDirectionRequirement) MarshalParcel ¶
func (s *IBluetoothAudioProviderLeAudioConfigurationRequirementAseDirectionRequirement) MarshalParcel( p *parcel.Parcel, ) error
func (*IBluetoothAudioProviderLeAudioConfigurationRequirementAseDirectionRequirement) UnmarshalParcel ¶
func (s *IBluetoothAudioProviderLeAudioConfigurationRequirementAseDirectionRequirement) UnmarshalParcel( p *parcel.Parcel, ) error
type IBluetoothAudioProviderLeAudioDataPathConfiguration ¶
type IBluetoothAudioProviderLeAudioDataPathConfiguration struct {
DataPathId int32
DataPathConfiguration IBluetoothAudioProviderLeAudioDataPathConfigurationDataPathConfiguration
IsoDataPathConfiguration IBluetoothAudioProviderLeAudioDataPathConfigurationIsoDataPathConfiguration
}
func (*IBluetoothAudioProviderLeAudioDataPathConfiguration) MarshalParcel ¶
func (s *IBluetoothAudioProviderLeAudioDataPathConfiguration) MarshalParcel( p *parcel.Parcel, ) error
func (*IBluetoothAudioProviderLeAudioDataPathConfiguration) UnmarshalParcel ¶
func (s *IBluetoothAudioProviderLeAudioDataPathConfiguration) UnmarshalParcel( p *parcel.Parcel, ) error
type IBluetoothAudioProviderLeAudioDataPathConfigurationDataPathConfiguration ¶
type IBluetoothAudioProviderLeAudioDataPathConfigurationDataPathConfiguration struct {
Configuration []byte
}
func (*IBluetoothAudioProviderLeAudioDataPathConfigurationDataPathConfiguration) MarshalParcel ¶
func (s *IBluetoothAudioProviderLeAudioDataPathConfigurationDataPathConfiguration) MarshalParcel( p *parcel.Parcel, ) error
func (*IBluetoothAudioProviderLeAudioDataPathConfigurationDataPathConfiguration) UnmarshalParcel ¶
func (s *IBluetoothAudioProviderLeAudioDataPathConfigurationDataPathConfiguration) UnmarshalParcel( p *parcel.Parcel, ) error
type IBluetoothAudioProviderLeAudioDataPathConfigurationIsoDataPathConfiguration ¶
type IBluetoothAudioProviderLeAudioDataPathConfigurationIsoDataPathConfiguration struct {
CodecId CodecId
IsTransparent bool
ControllerDelayUs int32
Configuration []byte
}
func (*IBluetoothAudioProviderLeAudioDataPathConfigurationIsoDataPathConfiguration) MarshalParcel ¶
func (s *IBluetoothAudioProviderLeAudioDataPathConfigurationIsoDataPathConfiguration) MarshalParcel( p *parcel.Parcel, ) error
func (*IBluetoothAudioProviderLeAudioDataPathConfigurationIsoDataPathConfiguration) UnmarshalParcel ¶
func (s *IBluetoothAudioProviderLeAudioDataPathConfigurationIsoDataPathConfiguration) UnmarshalParcel( p *parcel.Parcel, ) error
type IBluetoothAudioProviderLeAudioDataPathConfigurationPair ¶
type IBluetoothAudioProviderLeAudioDataPathConfigurationPair struct {
InputConfig *IBluetoothAudioProviderLeAudioDataPathConfiguration
OutputConfig *IBluetoothAudioProviderLeAudioDataPathConfiguration
}
func (*IBluetoothAudioProviderLeAudioDataPathConfigurationPair) MarshalParcel ¶
func (s *IBluetoothAudioProviderLeAudioDataPathConfigurationPair) MarshalParcel( p *parcel.Parcel, ) error
func (*IBluetoothAudioProviderLeAudioDataPathConfigurationPair) UnmarshalParcel ¶
func (s *IBluetoothAudioProviderLeAudioDataPathConfigurationPair) UnmarshalParcel( p *parcel.Parcel, ) error
type IBluetoothAudioProviderLeAudioDeviceCapabilities ¶
type IBluetoothAudioProviderLeAudioDeviceCapabilities struct {
CodecId CodecId
CodecSpecificCapabilities []CodecSpecificCapabilitiesLtv
VendorCodecSpecificCapabilities []byte
Metadata []MetadataLtv
}
func (*IBluetoothAudioProviderLeAudioDeviceCapabilities) MarshalParcel ¶
func (s *IBluetoothAudioProviderLeAudioDeviceCapabilities) MarshalParcel( p *parcel.Parcel, ) error
func (*IBluetoothAudioProviderLeAudioDeviceCapabilities) UnmarshalParcel ¶
func (s *IBluetoothAudioProviderLeAudioDeviceCapabilities) UnmarshalParcel( p *parcel.Parcel, ) error
type IBluetoothAudioProviderLeAudioSubgroupBisConfiguration ¶
type IBluetoothAudioProviderLeAudioSubgroupBisConfiguration struct {
NumBis int32
BisConfiguration LeAudioBisConfiguration
}
func (*IBluetoothAudioProviderLeAudioSubgroupBisConfiguration) MarshalParcel ¶
func (s *IBluetoothAudioProviderLeAudioSubgroupBisConfiguration) MarshalParcel( p *parcel.Parcel, ) error
func (*IBluetoothAudioProviderLeAudioSubgroupBisConfiguration) UnmarshalParcel ¶
func (s *IBluetoothAudioProviderLeAudioSubgroupBisConfiguration) UnmarshalParcel( p *parcel.Parcel, ) error
type IBluetoothAudioProviderPacking ¶
type IBluetoothAudioProviderPacking byte
const ( IBluetoothAudioProviderPackingSEQUENTIAL IBluetoothAudioProviderPacking = 0 IBluetoothAudioProviderPackingINTERLEAVED IBluetoothAudioProviderPacking = 1 )
type IBluetoothAudioProviderServer ¶
type IBluetoothAudioProviderServer interface {
EndSession(ctx context.Context) error
StartSession(ctx context.Context, hostIf IBluetoothAudioPort, audioConfig AudioConfiguration, supportedLatencyModes []LatencyMode) (fmq.MQDescriptor, error)
StreamStarted(ctx context.Context, status BluetoothAudioStatus) error
StreamSuspended(ctx context.Context, status BluetoothAudioStatus) error
UpdateAudioConfiguration(ctx context.Context, audioConfig AudioConfiguration) error
SetLowLatencyModeAllowed(ctx context.Context, allowed bool) error
ParseA2dpConfiguration(ctx context.Context, codecId CodecId, configuration []byte, codecParameters CodecParameters) (A2dpStatus, error)
GetA2dpConfiguration(ctx context.Context, remoteA2dpCapabilities []A2dpRemoteCapabilities, hint A2dpConfigurationHint) (A2dpConfiguration, error)
SetCodecPriority(ctx context.Context, codecId CodecId, priority int32) error
GetLeAudioAseConfiguration(ctx context.Context, remoteSinkAudioCapabilities []IBluetoothAudioProviderLeAudioDeviceCapabilities, remoteSourceAudioCapabilities []IBluetoothAudioProviderLeAudioDeviceCapabilities, requirements []IBluetoothAudioProviderLeAudioConfigurationRequirement) ([]IBluetoothAudioProviderLeAudioAseConfigurationSetting, error)
GetLeAudioAseQosConfiguration(ctx context.Context, qosRequirement IBluetoothAudioProviderLeAudioAseQosConfigurationRequirement) (IBluetoothAudioProviderLeAudioAseQosConfigurationPair, error)
GetLeAudioAseDatapathConfiguration(ctx context.Context, sinkConfig *IBluetoothAudioProviderStreamConfig, sourceConfig *IBluetoothAudioProviderStreamConfig) (IBluetoothAudioProviderLeAudioDataPathConfigurationPair, error)
OnSinkAseMetadataChanged(ctx context.Context, state IBluetoothAudioProviderAseState, cigId int32, cisId int32, metadata []MetadataLtv) error
OnSourceAseMetadataChanged(ctx context.Context, state IBluetoothAudioProviderAseState, cigId int32, cisId int32, metadata []MetadataLtv) error
GetLeAudioBroadcastConfiguration(ctx context.Context, remoteSinkAudioCapabilities []IBluetoothAudioProviderLeAudioDeviceCapabilities, requirement IBluetoothAudioProviderLeAudioBroadcastConfigurationRequirement) (IBluetoothAudioProviderLeAudioBroadcastConfigurationSetting, error)
GetLeAudioBroadcastDatapathConfiguration(ctx context.Context, audioContext AudioContext, streamMap []LeAudioBroadcastConfigurationBroadcastStreamMap) (IBluetoothAudioProviderLeAudioDataPathConfiguration, error)
}
IBluetoothAudioProviderServer is the server-side interface that user implementations provide to NewBluetoothAudioProviderStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type IBluetoothAudioProviderStreamConfig ¶
type IBluetoothAudioProviderStreamConfig struct {
AudioContext AudioContext
StreamMap []LeAudioConfigurationStreamMap
}
func (*IBluetoothAudioProviderStreamConfig) MarshalParcel ¶
func (s *IBluetoothAudioProviderStreamConfig) MarshalParcel( p *parcel.Parcel, ) error
func (*IBluetoothAudioProviderStreamConfig) UnmarshalParcel ¶
func (s *IBluetoothAudioProviderStreamConfig) UnmarshalParcel( p *parcel.Parcel, ) error
type LatencyMode ¶
type LatencyMode int32
const ( LatencyModeUNKNOWN LatencyMode = 0 LatencyModeLowLatency LatencyMode = 1 LatencyModeFREE LatencyMode = 2 LatencyModeDynamicSpatialAudioSoftware LatencyMode = 3 LatencyModeDynamicSpatialAudioHardware LatencyMode = 4 )
type Lc3Capabilities ¶
type Lc3Capabilities struct {
PcmBitDepth []byte
SamplingFrequencyHz []int32
FrameDurationUs []int32
OctetsPerFrame []int32
BlocksPerSdu []byte
ChannelMode []ChannelMode
}
func (*Lc3Capabilities) MarshalParcel ¶
func (s *Lc3Capabilities) MarshalParcel( p *parcel.Parcel, ) error
func (*Lc3Capabilities) UnmarshalParcel ¶
func (s *Lc3Capabilities) UnmarshalParcel( p *parcel.Parcel, ) error
type Lc3Configuration ¶
type Lc3Configuration struct {
PcmBitDepth byte
SamplingFrequencyHz int32
FrameDurationUs int32
OctetsPerFrame int32
BlocksPerSdu byte
ChannelMode ChannelMode
}
func (*Lc3Configuration) MarshalParcel ¶
func (s *Lc3Configuration) MarshalParcel( p *parcel.Parcel, ) error
func (*Lc3Configuration) UnmarshalParcel ¶
func (s *Lc3Configuration) UnmarshalParcel( p *parcel.Parcel, ) error
type LdacCapabilities ¶
type LdacCapabilities struct {
SampleRateHz []int32
ChannelMode []LdacChannelMode
QualityIndex []LdacQualityIndex
BitsPerSample []byte
}
func (*LdacCapabilities) MarshalParcel ¶
func (s *LdacCapabilities) MarshalParcel( p *parcel.Parcel, ) error
func (*LdacCapabilities) UnmarshalParcel ¶
func (s *LdacCapabilities) UnmarshalParcel( p *parcel.Parcel, ) error
type LdacChannelMode ¶
type LdacChannelMode byte
const ( LdacChannelModeUNKNOWN LdacChannelMode = 0 LdacChannelModeSTEREO LdacChannelMode = 1 LdacChannelModeDUAL LdacChannelMode = 2 LdacChannelModeMONO LdacChannelMode = 3 )
type LdacConfiguration ¶
type LdacConfiguration struct {
SampleRateHz int32
ChannelMode LdacChannelMode
QualityIndex LdacQualityIndex
BitsPerSample byte
}
func (*LdacConfiguration) MarshalParcel ¶
func (s *LdacConfiguration) MarshalParcel( p *parcel.Parcel, ) error
func (*LdacConfiguration) UnmarshalParcel ¶
func (s *LdacConfiguration) UnmarshalParcel( p *parcel.Parcel, ) error
type LdacQualityIndex ¶
type LdacQualityIndex byte
const ( LdacQualityIndexHIGH LdacQualityIndex = 0 LdacQualityIndexMID LdacQualityIndex = 1 LdacQualityIndexLOW LdacQualityIndex = 2 LdacQualityIndexABR LdacQualityIndex = 3 )
type LeAudioAseConfiguration ¶
type LeAudioAseConfiguration struct {
TargetLatency LeAudioAseConfigurationTargetLatency
TargetPhy Phy
CodecId *CodecId
CodecConfiguration []CodecSpecificConfigurationLtv
VendorCodecConfiguration []byte
Metadata []MetadataLtv
}
func (*LeAudioAseConfiguration) MarshalParcel ¶
func (s *LeAudioAseConfiguration) MarshalParcel( p *parcel.Parcel, ) error
func (*LeAudioAseConfiguration) UnmarshalParcel ¶
func (s *LeAudioAseConfiguration) UnmarshalParcel( p *parcel.Parcel, ) error
type LeAudioAseConfigurationTargetLatency ¶
type LeAudioAseConfigurationTargetLatency byte
const ( LeAudioAseConfigurationTargetLatencyUNDEFINED LeAudioAseConfigurationTargetLatency = 0 LeAudioAseConfigurationTargetLatencyLOWER LeAudioAseConfigurationTargetLatency = 1 LeAudioAseConfigurationTargetLatencyBalancedLatencyReliability LeAudioAseConfigurationTargetLatency = 2 LeAudioAseConfigurationTargetLatencyHigherReliability LeAudioAseConfigurationTargetLatency = 3 )
type LeAudioBisConfiguration ¶
type LeAudioBisConfiguration struct {
CodecId CodecId
CodecConfiguration []CodecSpecificConfigurationLtv
VendorCodecConfiguration []byte
Metadata []MetadataLtv
}
func (*LeAudioBisConfiguration) MarshalParcel ¶
func (s *LeAudioBisConfiguration) MarshalParcel( p *parcel.Parcel, ) error
func (*LeAudioBisConfiguration) UnmarshalParcel ¶
func (s *LeAudioBisConfiguration) UnmarshalParcel( p *parcel.Parcel, ) error
type LeAudioBroadcastConfiguration ¶
type LeAudioBroadcastConfiguration struct {
CodecType CodecType
StreamMap []LeAudioBroadcastConfigurationBroadcastStreamMap
}
func (*LeAudioBroadcastConfiguration) MarshalParcel ¶
func (s *LeAudioBroadcastConfiguration) MarshalParcel( p *parcel.Parcel, ) error
func (*LeAudioBroadcastConfiguration) UnmarshalParcel ¶
func (s *LeAudioBroadcastConfiguration) UnmarshalParcel( p *parcel.Parcel, ) error
type LeAudioBroadcastConfigurationBroadcastStreamMap ¶
type LeAudioBroadcastConfigurationBroadcastStreamMap struct {
StreamHandle uint16
AudioChannelAllocation int32
LeAudioCodecConfig LeAudioCodecConfiguration
PcmStreamId uint16
BisConfiguration *LeAudioBisConfiguration
Flags *ConfigurationFlags
}
func (*LeAudioBroadcastConfigurationBroadcastStreamMap) MarshalParcel ¶
func (s *LeAudioBroadcastConfigurationBroadcastStreamMap) MarshalParcel( p *parcel.Parcel, ) error
func (*LeAudioBroadcastConfigurationBroadcastStreamMap) UnmarshalParcel ¶
func (s *LeAudioBroadcastConfigurationBroadcastStreamMap) UnmarshalParcel( p *parcel.Parcel, ) error
type LeAudioCodecCapabilitiesSetting ¶
type LeAudioCodecCapabilitiesSetting struct {
UnicastEncodeCapability UnicastCapability
UnicastDecodeCapability UnicastCapability
BroadcastCapability BroadcastCapability
}
func (*LeAudioCodecCapabilitiesSetting) MarshalParcel ¶
func (s *LeAudioCodecCapabilitiesSetting) MarshalParcel( p *parcel.Parcel, ) error
func (*LeAudioCodecCapabilitiesSetting) UnmarshalParcel ¶
func (s *LeAudioCodecCapabilitiesSetting) UnmarshalParcel( p *parcel.Parcel, ) error
type LeAudioCodecConfiguration ¶
type LeAudioCodecConfiguration struct {
Tag int32
Lc3Config Lc3Configuration
VendorConfig LeAudioCodecConfigurationVendorConfiguration
AptxAdaptiveLeConfig AptxAdaptiveLeConfiguration
}
func (*LeAudioCodecConfiguration) GetAptxAdaptiveLeConfig ¶
func (u *LeAudioCodecConfiguration) GetAptxAdaptiveLeConfig() (AptxAdaptiveLeConfiguration, bool)
func (*LeAudioCodecConfiguration) GetLc3Config ¶
func (u *LeAudioCodecConfiguration) GetLc3Config() (Lc3Configuration, bool)
func (*LeAudioCodecConfiguration) GetVendorConfig ¶
func (u *LeAudioCodecConfiguration) GetVendorConfig() (LeAudioCodecConfigurationVendorConfiguration, bool)
func (*LeAudioCodecConfiguration) MarshalParcel ¶
func (u *LeAudioCodecConfiguration) MarshalParcel( p *parcel.Parcel, ) error
func (*LeAudioCodecConfiguration) SetAptxAdaptiveLeConfig ¶
func (u *LeAudioCodecConfiguration) SetAptxAdaptiveLeConfig( v AptxAdaptiveLeConfiguration, )
func (*LeAudioCodecConfiguration) SetLc3Config ¶
func (u *LeAudioCodecConfiguration) SetLc3Config( v Lc3Configuration, )
func (*LeAudioCodecConfiguration) SetVendorConfig ¶
func (u *LeAudioCodecConfiguration) SetVendorConfig( v LeAudioCodecConfigurationVendorConfiguration, )
func (*LeAudioCodecConfiguration) UnmarshalParcel ¶
func (u *LeAudioCodecConfiguration) UnmarshalParcel( p *parcel.Parcel, ) error
type LeAudioCodecConfigurationVendorConfiguration ¶
type LeAudioCodecConfigurationVendorConfiguration struct {
Extension any
}
func (*LeAudioCodecConfigurationVendorConfiguration) MarshalParcel ¶
func (s *LeAudioCodecConfigurationVendorConfiguration) MarshalParcel( p *parcel.Parcel, ) error
func (*LeAudioCodecConfigurationVendorConfiguration) UnmarshalParcel ¶
func (s *LeAudioCodecConfigurationVendorConfiguration) UnmarshalParcel( p *parcel.Parcel, ) error
type LeAudioConfiguration ¶
type LeAudioConfiguration struct {
CodecType CodecType
StreamMap []LeAudioConfigurationStreamMap
PeerDelayUs int32
LeAudioCodecConfig LeAudioCodecConfiguration
VendorSpecificMetadata []byte
}
func (*LeAudioConfiguration) MarshalParcel ¶
func (s *LeAudioConfiguration) MarshalParcel( p *parcel.Parcel, ) error
func (*LeAudioConfiguration) UnmarshalParcel ¶
func (s *LeAudioConfiguration) UnmarshalParcel( p *parcel.Parcel, ) error
type LeAudioConfigurationStreamMap ¶
type LeAudioConfigurationStreamMap struct {
StreamHandle uint16
AudioChannelAllocation int32
IsStreamActive bool
AseConfiguration *LeAudioAseConfiguration
Flags *ConfigurationFlags
BluetoothDeviceAddress *LeAudioConfigurationStreamMapBluetoothDeviceAddress
}
func (*LeAudioConfigurationStreamMap) MarshalParcel ¶
func (s *LeAudioConfigurationStreamMap) MarshalParcel( p *parcel.Parcel, ) error
func (*LeAudioConfigurationStreamMap) UnmarshalParcel ¶
func (s *LeAudioConfigurationStreamMap) UnmarshalParcel( p *parcel.Parcel, ) error
type LeAudioConfigurationStreamMapBluetoothDeviceAddress ¶
type LeAudioConfigurationStreamMapBluetoothDeviceAddress struct {
DeviceAddress []byte
DeviceAddressType LeAudioConfigurationStreamMapBluetoothDeviceAddressDeviceAddressType
}
func (*LeAudioConfigurationStreamMapBluetoothDeviceAddress) MarshalParcel ¶
func (s *LeAudioConfigurationStreamMapBluetoothDeviceAddress) MarshalParcel( p *parcel.Parcel, ) error
func (*LeAudioConfigurationStreamMapBluetoothDeviceAddress) UnmarshalParcel ¶
func (s *LeAudioConfigurationStreamMapBluetoothDeviceAddress) UnmarshalParcel( p *parcel.Parcel, ) error
type LeAudioConfigurationStreamMapBluetoothDeviceAddressDeviceAddressType ¶
type LeAudioConfigurationStreamMapBluetoothDeviceAddressDeviceAddressType int32
const ( LeAudioConfigurationStreamMapBluetoothDeviceAddressDeviceAddressTypeBleAddressPublic LeAudioConfigurationStreamMapBluetoothDeviceAddressDeviceAddressType = 0 LeAudioConfigurationStreamMapBluetoothDeviceAddressDeviceAddressTypeBleAddressRandom LeAudioConfigurationStreamMapBluetoothDeviceAddressDeviceAddressType = 1 )
type MetadataLtv ¶
type MetadataLtv struct {
Tag int32
PreferredAudioContexts MetadataLtvPreferredAudioContexts
StreamingAudioContexts MetadataLtvStreamingAudioContexts
VendorSpecific MetadataLtvVendorSpecific
}
func (*MetadataLtv) GetPreferredAudioContexts ¶
func (u *MetadataLtv) GetPreferredAudioContexts() (MetadataLtvPreferredAudioContexts, bool)
func (*MetadataLtv) GetStreamingAudioContexts ¶
func (u *MetadataLtv) GetStreamingAudioContexts() (MetadataLtvStreamingAudioContexts, bool)
func (*MetadataLtv) GetVendorSpecific ¶
func (u *MetadataLtv) GetVendorSpecific() (MetadataLtvVendorSpecific, bool)
func (*MetadataLtv) MarshalParcel ¶
func (u *MetadataLtv) MarshalParcel( p *parcel.Parcel, ) error
func (*MetadataLtv) SetPreferredAudioContexts ¶
func (u *MetadataLtv) SetPreferredAudioContexts( v MetadataLtvPreferredAudioContexts, )
func (*MetadataLtv) SetStreamingAudioContexts ¶
func (u *MetadataLtv) SetStreamingAudioContexts( v MetadataLtvStreamingAudioContexts, )
func (*MetadataLtv) SetVendorSpecific ¶
func (u *MetadataLtv) SetVendorSpecific( v MetadataLtvVendorSpecific, )
func (*MetadataLtv) UnmarshalParcel ¶
func (u *MetadataLtv) UnmarshalParcel( p *parcel.Parcel, ) error
type MetadataLtvPreferredAudioContexts ¶
type MetadataLtvPreferredAudioContexts struct {
Values AudioContext
}
func (*MetadataLtvPreferredAudioContexts) MarshalParcel ¶
func (s *MetadataLtvPreferredAudioContexts) MarshalParcel( p *parcel.Parcel, ) error
func (*MetadataLtvPreferredAudioContexts) UnmarshalParcel ¶
func (s *MetadataLtvPreferredAudioContexts) UnmarshalParcel( p *parcel.Parcel, ) error
type MetadataLtvStreamingAudioContexts ¶
type MetadataLtvStreamingAudioContexts struct {
Values AudioContext
}
func (*MetadataLtvStreamingAudioContexts) MarshalParcel ¶
func (s *MetadataLtvStreamingAudioContexts) MarshalParcel( p *parcel.Parcel, ) error
func (*MetadataLtvStreamingAudioContexts) UnmarshalParcel ¶
func (s *MetadataLtvStreamingAudioContexts) UnmarshalParcel( p *parcel.Parcel, ) error
type MetadataLtvVendorSpecific ¶
func (*MetadataLtvVendorSpecific) MarshalParcel ¶
func (s *MetadataLtvVendorSpecific) MarshalParcel( p *parcel.Parcel, ) error
func (*MetadataLtvVendorSpecific) UnmarshalParcel ¶
func (s *MetadataLtvVendorSpecific) UnmarshalParcel( p *parcel.Parcel, ) error
type OpusCapabilities ¶
type OpusCapabilities struct {
PcmBitDepth []byte
SamplingFrequencyHz []int32
FrameDurationUs []int32
OctetsPerFrame []int32
BlocksPerSdu []byte
ChannelMode []ChannelMode
}
func (*OpusCapabilities) MarshalParcel ¶
func (s *OpusCapabilities) MarshalParcel( p *parcel.Parcel, ) error
func (*OpusCapabilities) UnmarshalParcel ¶
func (s *OpusCapabilities) UnmarshalParcel( p *parcel.Parcel, ) error
type OpusConfiguration ¶
type OpusConfiguration struct {
PcmBitDepth byte
SamplingFrequencyHz int32
FrameDurationUs int32
OctetsPerFrame int32
BlocksPerSdu byte
ChannelMode ChannelMode
}
func (*OpusConfiguration) MarshalParcel ¶
func (s *OpusConfiguration) MarshalParcel( p *parcel.Parcel, ) error
func (*OpusConfiguration) UnmarshalParcel ¶
func (s *OpusConfiguration) UnmarshalParcel( p *parcel.Parcel, ) error
type PcmCapabilities ¶
type PcmCapabilities struct {
SampleRateHz []int32
ChannelMode []ChannelMode
BitsPerSample []byte
DataIntervalUs []int32
}
func (*PcmCapabilities) MarshalParcel ¶
func (s *PcmCapabilities) MarshalParcel( p *parcel.Parcel, ) error
func (*PcmCapabilities) UnmarshalParcel ¶
func (s *PcmCapabilities) UnmarshalParcel( p *parcel.Parcel, ) error
type PcmConfiguration ¶
type PcmConfiguration struct {
SampleRateHz int32
ChannelMode ChannelMode
BitsPerSample byte
DataIntervalUs int32
}
func (*PcmConfiguration) MarshalParcel ¶
func (s *PcmConfiguration) MarshalParcel( p *parcel.Parcel, ) error
func (*PcmConfiguration) UnmarshalParcel ¶
func (s *PcmConfiguration) UnmarshalParcel( p *parcel.Parcel, ) error
type PresentationPosition ¶
type PresentationPosition struct {
RemoteDeviceAudioDelayNanos int64
TransmittedOctets int64
TransmittedOctetsTimestamp PresentationPositionTimeSpec
}
func (*PresentationPosition) MarshalParcel ¶
func (s *PresentationPosition) MarshalParcel( p *parcel.Parcel, ) error
func (*PresentationPosition) UnmarshalParcel ¶
func (s *PresentationPosition) UnmarshalParcel( p *parcel.Parcel, ) error
type PresentationPositionTimeSpec ¶
func (*PresentationPositionTimeSpec) MarshalParcel ¶
func (s *PresentationPositionTimeSpec) MarshalParcel( p *parcel.Parcel, ) error
func (*PresentationPositionTimeSpec) UnmarshalParcel ¶
func (s *PresentationPositionTimeSpec) UnmarshalParcel( p *parcel.Parcel, ) error
type SbcAllocMethod ¶
type SbcAllocMethod byte
const ( SbcAllocMethodAllocMdS SbcAllocMethod = 0 SbcAllocMethodAllocMdL SbcAllocMethod = 1 )
type SbcCapabilities ¶
type SbcCapabilities struct {
SampleRateHz []int32
ChannelMode []SbcChannelMode
BlockLength []byte
NumSubbands []byte
AllocMethod []SbcAllocMethod
BitsPerSample []byte
MinBitpool int32
MaxBitpool int32
}
func (*SbcCapabilities) MarshalParcel ¶
func (s *SbcCapabilities) MarshalParcel( p *parcel.Parcel, ) error
func (*SbcCapabilities) UnmarshalParcel ¶
func (s *SbcCapabilities) UnmarshalParcel( p *parcel.Parcel, ) error
type SbcChannelMode ¶
type SbcChannelMode byte
const ( SbcChannelModeUNKNOWN SbcChannelMode = 0 SbcChannelModeJointStereo SbcChannelMode = 1 SbcChannelModeSTEREO SbcChannelMode = 2 SbcChannelModeDUAL SbcChannelMode = 3 SbcChannelModeMONO SbcChannelMode = 4 )
type SbcConfiguration ¶
type SbcConfiguration struct {
SampleRateHz int32
ChannelMode SbcChannelMode
BlockLength byte
NumSubbands byte
AllocMethod SbcAllocMethod
BitsPerSample byte
MinBitpool int32
MaxBitpool int32
}
func (*SbcConfiguration) MarshalParcel ¶
func (s *SbcConfiguration) MarshalParcel( p *parcel.Parcel, ) error
func (*SbcConfiguration) UnmarshalParcel ¶
func (s *SbcConfiguration) UnmarshalParcel( p *parcel.Parcel, ) error
type SessionType ¶
type SessionType byte
const ( SessionTypeUNKNOWN SessionType = 0 SessionTypeA2dpSoftwareEncodingDatapath SessionType = 1 SessionTypeA2dpHardwareOffloadEncodingDatapath SessionType = 2 SessionTypeHearingAidSoftwareEncodingDatapath SessionType = 3 SessionTypeLeAudioSoftwareEncodingDatapath SessionType = 4 SessionTypeLeAudioSoftwareDecodingDatapath SessionType = 5 SessionTypeLeAudioHardwareOffloadEncodingDatapath SessionType = 6 SessionTypeLeAudioHardwareOffloadDecodingDatapath SessionType = 7 SessionTypeLeAudioBroadcastSoftwareEncodingDatapath SessionType = 8 SessionTypeLeAudioBroadcastHardwareOffloadEncodingDatapath SessionType = 9 SessionTypeA2dpSoftwareDecodingDatapath SessionType = 10 SessionTypeA2dpHardwareOffloadDecodingDatapath SessionType = 11 SessionTypeHfpSoftwareEncodingDatapath SessionType = 12 SessionTypeHfpSoftwareDecodingDatapath SessionType = 13 SessionTypeHfpHardwareOffloadDatapath SessionType = 14 )
type UnicastCapability ¶
type UnicastCapability struct {
CodecType CodecType
SupportedChannel AudioLocation
DeviceCount int32
ChannelCountPerDevice int32
LeAudioCodecCapabilities UnicastCapabilityLeAudioCodecCapabilities
}
func (*UnicastCapability) MarshalParcel ¶
func (s *UnicastCapability) MarshalParcel( p *parcel.Parcel, ) error
func (*UnicastCapability) UnmarshalParcel ¶
func (s *UnicastCapability) UnmarshalParcel( p *parcel.Parcel, ) error
type UnicastCapabilityLeAudioCodecCapabilities ¶
type UnicastCapabilityLeAudioCodecCapabilities struct {
Tag int32
Lc3Capabilities Lc3Capabilities
VendorCapabillities UnicastCapabilityVendorCapabilities
AptxAdaptiveLeCapabilities AptxAdaptiveLeCapabilities
}
func (*UnicastCapabilityLeAudioCodecCapabilities) GetAptxAdaptiveLeCapabilities ¶
func (u *UnicastCapabilityLeAudioCodecCapabilities) GetAptxAdaptiveLeCapabilities() (AptxAdaptiveLeCapabilities, bool)
func (*UnicastCapabilityLeAudioCodecCapabilities) GetLc3Capabilities ¶
func (u *UnicastCapabilityLeAudioCodecCapabilities) GetLc3Capabilities() (Lc3Capabilities, bool)
func (*UnicastCapabilityLeAudioCodecCapabilities) GetVendorCapabillities ¶
func (u *UnicastCapabilityLeAudioCodecCapabilities) GetVendorCapabillities() (UnicastCapabilityVendorCapabilities, bool)
func (*UnicastCapabilityLeAudioCodecCapabilities) MarshalParcel ¶
func (u *UnicastCapabilityLeAudioCodecCapabilities) MarshalParcel( p *parcel.Parcel, ) error
func (*UnicastCapabilityLeAudioCodecCapabilities) SetAptxAdaptiveLeCapabilities ¶
func (u *UnicastCapabilityLeAudioCodecCapabilities) SetAptxAdaptiveLeCapabilities( v AptxAdaptiveLeCapabilities, )
func (*UnicastCapabilityLeAudioCodecCapabilities) SetLc3Capabilities ¶
func (u *UnicastCapabilityLeAudioCodecCapabilities) SetLc3Capabilities( v Lc3Capabilities, )
func (*UnicastCapabilityLeAudioCodecCapabilities) SetVendorCapabillities ¶
func (u *UnicastCapabilityLeAudioCodecCapabilities) SetVendorCapabillities( v UnicastCapabilityVendorCapabilities, )
func (*UnicastCapabilityLeAudioCodecCapabilities) UnmarshalParcel ¶
func (u *UnicastCapabilityLeAudioCodecCapabilities) UnmarshalParcel( p *parcel.Parcel, ) error
type UnicastCapabilityVendorCapabilities ¶
type UnicastCapabilityVendorCapabilities struct {
Extension any
}
func (*UnicastCapabilityVendorCapabilities) MarshalParcel ¶
func (s *UnicastCapabilityVendorCapabilities) MarshalParcel( p *parcel.Parcel, ) error
func (*UnicastCapabilityVendorCapabilities) UnmarshalParcel ¶
func (s *UnicastCapabilityVendorCapabilities) UnmarshalParcel( p *parcel.Parcel, ) error
Source Files
¶
- a2dpconfiguration.go
- a2dpconfigurationhint.go
- a2dpremotecapabilities.go
- a2dpstatus.go
- a2dpstreamconfiguration.go
- aaccapabilities.go
- aacconfiguration.go
- aacobjecttype.go
- aptxadaptivecapabilities.go
- aptxadaptivechannelmode.go
- aptxadaptiveconfiguration.go
- aptxadaptiveinputmode.go
- aptxadaptivelecapabilities.go
- aptxadaptiveleconfiguration.go
- aptxadaptivetimetoplay.go
- aptxcapabilities.go
- aptxconfiguration.go
- aptxmode.go
- aptxsinkbuffering.go
- audiocapabilities.go
- audioconfiguration.go
- audiocontext.go
- audiolocation.go
- bluetoothaudiostatus.go
- broadcastcapability.go
- broadcastcapability.leaudiocodeccapabilities.go
- broadcastcapability.vendorcapabilities.go
- channelmode.go
- codeccapabilities.capabilities.go
- codeccapabilities.go
- codeccapabilities.vendorcapabilities.go
- codecconfiguration.codecspecific.go
- codecconfiguration.go
- codecconfiguration.vendorconfiguration.go
- codecid.a2dp.go
- codecid.core.go
- codecid.go
- codecid.vendor.go
- codecinfo.a2dp.go
- codecinfo.go
- codecinfo.hfp.go
- codecinfo.leaudio.go
- codecinfo.transport.go
- codecparameters.go
- codecspecificcapabilitiesltv.go
- codecspecificcapabilitiesltv.supportedaudiochannelcounts.go
- codecspecificcapabilitiesltv.supportedframedurations.go
- codecspecificcapabilitiesltv.supportedmaxcodecframespersdu.go
- codecspecificcapabilitiesltv.supportedoctetspercodecframe.go
- codecspecificcapabilitiesltv.supportedsamplingfrequencies.go
- codecspecificconfigurationltv.audiochannelallocation.go
- codecspecificconfigurationltv.codecframeblockspersdu.go
- codecspecificconfigurationltv.frameduration.go
- codecspecificconfigurationltv.go
- codecspecificconfigurationltv.octetspercodecframe.go
- codecspecificconfigurationltv.samplingfrequency.go
- codectype.go
- configurationflags.go
- hfpconfiguration.go
- ibluetoothaudioport.go
- ibluetoothaudioprovider.asestate.go
- ibluetoothaudioprovider.broadcastquality.go
- ibluetoothaudioprovider.framing.go
- ibluetoothaudioprovider.go
- ibluetoothaudioprovider.leaudioaseconfigurationsetting.asedirectionconfiguration.go
- ibluetoothaudioprovider.leaudioaseconfigurationsetting.go
- ibluetoothaudioprovider.leaudioaseqosconfiguration.go
- ibluetoothaudioprovider.leaudioaseqosconfigurationpair.go
- ibluetoothaudioprovider.leaudioaseqosconfigurationrequirement.aseqosdirectionrequirement.go
- ibluetoothaudioprovider.leaudioaseqosconfigurationrequirement.go
- ibluetoothaudioprovider.leaudiobroadcastconfigurationrequirement.go
- ibluetoothaudioprovider.leaudiobroadcastconfigurationsetting.go
- ibluetoothaudioprovider.leaudiobroadcastsubgroupconfiguration.go
- ibluetoothaudioprovider.leaudiobroadcastsubgroupconfigurationrequirement.go
- ibluetoothaudioprovider.leaudioconfigurationrequirement.asedirectionrequirement.go
- ibluetoothaudioprovider.leaudioconfigurationrequirement.go
- ibluetoothaudioprovider.leaudiodatapathconfiguration.datapathconfiguration.go
- ibluetoothaudioprovider.leaudiodatapathconfiguration.go
- ibluetoothaudioprovider.leaudiodatapathconfiguration.isodatapathconfiguration.go
- ibluetoothaudioprovider.leaudiodatapathconfigurationpair.go
- ibluetoothaudioprovider.leaudiodevicecapabilities.go
- ibluetoothaudioprovider.leaudiosubgroupbisconfiguration.go
- ibluetoothaudioprovider.packing.go
- ibluetoothaudioprovider.streamconfig.go
- ibluetoothaudioproviderfactory.go
- ibluetoothaudioproviderfactory.providerinfo.go
- latencymode.go
- lc3capabilities.go
- lc3configuration.go
- ldaccapabilities.go
- ldacchannelmode.go
- ldacconfiguration.go
- ldacqualityindex.go
- leaudioaseconfiguration.go
- leaudioaseconfiguration.targetlatency.go
- leaudiobisconfiguration.go
- leaudiobroadcastconfiguration.broadcaststreammap.go
- leaudiobroadcastconfiguration.go
- leaudiocodeccapabilitiessetting.go
- leaudiocodecconfiguration.go
- leaudiocodecconfiguration.vendorconfiguration.go
- leaudioconfiguration.go
- leaudioconfiguration.streammap.bluetoothdeviceaddress.deviceaddresstype.go
- leaudioconfiguration.streammap.bluetoothdeviceaddress.go
- leaudioconfiguration.streammap.go
- metadataltv.go
- metadataltv.preferredaudiocontexts.go
- metadataltv.streamingaudiocontexts.go
- metadataltv.vendorspecific.go
- opuscapabilities.go
- opusconfiguration.go
- pcmcapabilities.go
- pcmconfiguration.go
- phy.go
- presentationposition.go
- presentationposition.timespec.go
- sbcallocmethod.go
- sbccapabilities.go
- sbcchannelmode.go
- sbcconfiguration.go
- sessiontype.go
- unicastcapability.go
- unicastcapability.leaudiocodeccapabilities.go
- unicastcapability.vendorcapabilities.go