AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <PlaybackConfiguration.h>
Public Types | |
enum | ChannelLayout { ChannelLayout::LAYOUT_MONO, ChannelLayout::LAYOUT_STEREO, ChannelLayout::LAYOUT_SURROUND, ChannelLayout::LAYOUT_5POINT1 } |
enum | SampleFormat { SampleFormat::UNSIGNED_8 = 8, SampleFormat::SIGNED_16 = 16, SampleFormat::SIGNED_32 = 32 } |
Public Member Functions | |
bool | isLittleEndian () const |
size_t | sampleRate () const |
SampleFormat | sampleFormat () const |
ChannelLayout | channelLayout () const |
size_t | numberChannels () const |
size_t | sampleSizeBytes () const |
~PlaybackConfiguration ()=default | |
PlaybackConfiguration () | |
PlaybackConfiguration (const bool isLittleEndian, const size_t sampleRate, const ChannelLayout layout, const SampleFormat sampleFormat) | |
An object of this class holds information about the playback configuration used by the Android media player.
By default, the playback configuration is:
To change the default configuration, user can either:
|
default |
Destructor.
alexaClientSDK::mediaPlayer::android::PlaybackConfiguration::PlaybackConfiguration | ( | ) |
Constructor where the new object will have default configuration values.
alexaClientSDK::mediaPlayer::android::PlaybackConfiguration::PlaybackConfiguration | ( | const bool | isLittleEndian, |
const size_t | sampleRate, | ||
const ChannelLayout | layout, | ||
const SampleFormat | sampleFormat | ||
) |
Configurable constructor that can be used to set custom configuration values.
|
inline |
Get the channel layout.
|
inline |
Check whether the configuration is little endian.
true
if endianness is little endian and if big endian.
|
inline |
Get the number of channels used.
|
inline |
Get the sample format.
|
inline |
Get the sample rate in Hz.
|
inline |
Get the number of bytes per sample.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0