AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
AudioEncoderParams.h
Go to the documentation of this file.
1 /*
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License").
5  * You may not use this file except in compliance with the License.
6  * A copy of the License is located at
7  *
8  * http://aws.amazon.com/apache2.0/
9  *
10  * or in the "license" file accompanying this file. This file is distributed
11  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12  * express or implied. See the License for the specific language governing
13  * permissions and limitations under the License.
14  */
15 
16 #ifndef ACSDK_AUDIOENCODER_AUDIOENCODERPARAMS_H_
17 #define ACSDK_AUDIOENCODER_AUDIOENCODERPARAMS_H_
18 
19 #include <chrono>
20 #include <cstddef>
21 
22 namespace alexaClientSDK {
23 namespace audioEncoder {
24 
38  std::chrono::milliseconds readTimeoutMs;
39 
45  std::chrono::milliseconds writeTimeoutMs;
46 
53  std::chrono::milliseconds stopTimeoutMs;
54 
61 
68 
69 // GCC 4.x and 5.x reached end of support before some of c++11 amendments were made. In particular, these compilers
70 // do not have default constructors for list initialization from aggregates. This issue has been addressed in GCC 6.x.
71 // http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#1467
72 #if !defined(__clang__) && defined(__GNUC__) && (__GNUC__ < 6)
73 
83 
98  std::chrono::milliseconds readTimeoutMs,
99  std::chrono::milliseconds writeTimeoutMs,
100  std::chrono::milliseconds stopTimeoutMs,
101  std::size_t maxOutputStreamReaders,
102  std::size_t maxOutputStreamBufferedPackets);
103 #endif
104 };
105 
106 } // namespace audioEncoder
107 } // namespace alexaClientSDK
108 
109 #endif // ACSDK_AUDIOENCODER_AUDIOENCODERPARAMS_H_
std::size_t maxOutputStreamBufferedPackets
The maximum number of packets to be buffered to the output stream.
Definition: AudioEncoderParams.h:67
std::chrono::milliseconds writeTimeoutMs
Timeout between write retrying.
Definition: AudioEncoderParams.h:45
Audio encoder parameters.
Definition: AudioEncoderParams.h:32
std::chrono::milliseconds stopTimeoutMs
Timeout for graceful stop operation.
Definition: AudioEncoderParams.h:53
std::size_t maxOutputStreamReaders
The maximum number of readers of the output stream.
Definition: AudioEncoderParams.h:60
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
std::chrono::milliseconds readTimeoutMs
Reading timeout from input audio stream.
Definition: AudioEncoderParams.h:38

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