AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Public Member Functions | Static Public Attributes | List of all members
alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::services::A2DPSourceInterface Class Referenceabstract

#include <A2DPSourceInterface.h>

Inheritance diagram for alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::services::A2DPSourceInterface:
Inheritance graph
[legend]
Collaboration diagram for alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::services::A2DPSourceInterface:
Collaboration graph
[legend]

Public Member Functions

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

Static Public Attributes

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

Interface to support A2DP streaming from bluetooth device to SDK

Constructor & Destructor Documentation

◆ ~A2DPSourceInterface()

virtual alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::services::A2DPSourceInterface::~A2DPSourceInterface ( )
virtualdefault

Destructor.

Member Function Documentation

◆ getSourceStream()

virtual std::shared_ptr<avsCommon::utils::bluetooth::FormattedAudioStreamAdapter> alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::services::A2DPSourceInterface::getSourceStream ( )
pure virtual

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.

Implemented in alexaClientSDK::bluetoothImplementations::blueZ::BlueZA2DPSource.

Member Data Documentation

◆ NAME

constexpr const char* alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::services::A2DPSourceInterface::NAME = "AudioSource"
static

The Service Name.

◆ UUID

constexpr const char* alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::services::A2DPSourceInterface::UUID = "0000110a-0000-1000-8000-00805f9b34fb"
static

The Service UUID.


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