AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Static Public Member Functions | List of all members
alexaClientSDK::bluetoothImplementations::blueZ::BlueZA2DPSource Class Reference

#include <BlueZA2DPSource.h>

Inheritance diagram for alexaClientSDK::bluetoothImplementations::blueZ::BlueZA2DPSource:
Inheritance graph
[legend]
Collaboration diagram for alexaClientSDK::bluetoothImplementations::blueZ::BlueZA2DPSource:
Collaboration graph
[legend]

Public Member Functions

A2DPSourceInterface functions.
std::shared_ptr< avsCommon::utils::bluetooth::FormattedAudioStreamAdaptergetSourceStream () override
 
BluetoothServiceInterface functions.
std::shared_ptr< avsCommon::sdkInterfaces::bluetooth::services::SDPRecordInterfacegetRecord () override
 
void setup () override
 Called for any necessary setup of the service. More...
 
void cleanup () override
 Called for any necessary cleanup of the service. More...
 
- Public Member Functions inherited from alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::services::A2DPSourceInterface
virtual ~A2DPSourceInterface ()=default
 
- Public Member Functions inherited from alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::services::BluetoothServiceInterface
virtual ~BluetoothServiceInterface ()=default
 Destructor. More...
 

Static Public Member Functions

static std::shared_ptr< BlueZA2DPSourcecreate (std::shared_ptr< BlueZDeviceManager > deviceManager)
 

Additional Inherited Members

- Static Public Attributes inherited from alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::services::A2DPSourceInterface
static constexpr const char * UUID = "0000110a-0000-1000-8000-00805f9b34fb"
 The Service UUID. More...
 
static constexpr const char * NAME = "AudioSource"
 The Service Name. More...
 

Detailed Description

BlueZ implementation of A2DPSourceInterface interface

Member Function Documentation

◆ cleanup()

void alexaClientSDK::bluetoothImplementations::blueZ::BlueZA2DPSource::cleanup ( )
overridevirtual

Called for any necessary cleanup of the service.

Implements alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::services::BluetoothServiceInterface.

◆ create()

static std::shared_ptr<BlueZA2DPSource> alexaClientSDK::bluetoothImplementations::blueZ::BlueZA2DPSource::create ( std::shared_ptr< BlueZDeviceManager deviceManager)
static

Factory method to create a new instance of BlueZA2DPSource

Parameters
deviceManagerA BlueZDeviceManager this instance belongs to
Returns
A new instance of BlueZA2DPSource, nullptr if there was an error creating it.

◆ getRecord()

std::shared_ptr<avsCommon::sdkInterfaces::bluetooth::services::SDPRecordInterface> alexaClientSDK::bluetoothImplementations::blueZ::BlueZA2DPSource::getRecord ( )
overridevirtual

Returns an SDPRecord for the service.

Returns
A SDPRecordInterface for the service.

Implements alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::services::BluetoothServiceInterface.

◆ getSourceStream()

std::shared_ptr<avsCommon::utils::bluetooth::FormattedAudioStreamAdapter> alexaClientSDK::bluetoothImplementations::blueZ::BlueZA2DPSource::getSourceStream ( )
overridevirtual

Returns the stream containing the decoded raw PCM data sent by the connected device.

Returns
A shared_ptr to a FormattedAudioStreamAdapter object to be consumed.

Implements alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::services::A2DPSourceInterface.

◆ setup()

void alexaClientSDK::bluetoothImplementations::blueZ::BlueZA2DPSource::setup ( )
overridevirtual

Called for any necessary setup of the service.

Implements alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::services::BluetoothServiceInterface.


The documentation for this class was generated from the following file:

AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0