forked from alexa/avs-device-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes in this update -Implemented Sensory wake word detector functionality -Removed the need for a std::recursive_mutex in MessageRouter -Added AIP unit test -Added handleDirectiveImmediately functionality to SpeechSynthesizer -Added memory profiles for: AIP SpeechSynthesizer ContextManager AVSUtils AVSCommon -Bug fix for MultipartParser.h compiler warning -Suppression of sensitive log data even in debug builds. Use cmake parameter -DACSDK_EMIT_SENSITIVE_LOGS=ON to allow logging of sensitive information in DEBUG builds -Fix crash in ACL when attempting to use more than 10 streams -Updated MediaPlayer to use autoaudiosink instead of requiring pulseaudio -Updated MediaPlayer build to suppport local builds of GStreamer -Fixes for the following Github issues: alexa#5 alexa#8 alexa#9 alexa#10 alexa#17 alexa#24
- Loading branch information
Keith Huang
committed
Jun 9, 2017
1 parent
8ada36d
commit c84d60c
Showing
119 changed files
with
4,012 additions
and
1,590 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
/* | ||
* EnumUtils.h | ||
* | ||
* Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"). | ||
* You may not use this file except in compliance with the License. | ||
* A copy of the License is located at | ||
* | ||
* http://aws.amazon.com/apache2.0/ | ||
* | ||
* or in the "license" file accompanying this file. This file is distributed | ||
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either | ||
* express or implied. See the License for the specific language governing | ||
* permissions and limitations under the License. | ||
*/ | ||
|
||
#ifndef ALEXA_CLIENT_SDK_ACL_INCLUDE_ACL_ENUM_UTILS_H_ | ||
#define ALEXA_CLIENT_SDK_ACL_INCLUDE_ACL_ENUM_UTILS_H_ | ||
|
||
|
||
#include <ostream> | ||
#include <string> | ||
#include "ACL/ConnectionStatusObserverInterface.h" | ||
|
||
namespace alexaClientSDK { | ||
namespace acl { | ||
|
||
/** | ||
* Utility function to convert a modern enum class to a string. | ||
* | ||
* @param status The enum value | ||
* @return The string representation of the incoming value. | ||
*/ | ||
std::string connectionStatusToString(ConnectionStatusObserverInterface::Status status); | ||
|
||
/** | ||
* Utility function to convert a modern enum class to a string. | ||
* | ||
* @param status The enum value | ||
* @return The string representation of the incoming value. | ||
*/ | ||
std::string connectionChangedReasonToString(ConnectionStatusObserverInterface::ChangedReason reason); | ||
|
||
/** | ||
* Write a @c Status value to an @c ostream as a string. | ||
* | ||
* @param stream The stream to write the value to. | ||
* @param status The Status value to write to the @c ostream as a string. | ||
* @return The @c ostream that was passed in and written to. | ||
*/ | ||
inline std::ostream& operator << (std::ostream& stream, ConnectionStatusObserverInterface::Status status) { | ||
return stream << connectionStatusToString(status); | ||
} | ||
|
||
/** | ||
* Write a @c ChangedReason value to an @c ostream as a string. | ||
* | ||
* @param stream The stream to write the value to. | ||
* @param reason The ChangedReason value to write to the @c ostream as a string. | ||
* @return The @c ostream that was passed in and written to. | ||
*/ | ||
inline std::ostream& operator << (std::ostream& stream, ConnectionStatusObserverInterface::ChangedReason reason) { | ||
return stream << connectionChangedReasonToString(reason); | ||
} | ||
|
||
} // namespace acl | ||
} // namespace alexaClientSDK | ||
#endif // ALEXA_CLIENT_SDK_ACL_INCLUDE_ACL_ENUM_UTILS_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.