diff options
author | JackLivio <jack@livio.io> | 2018-10-19 15:05:09 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-19 15:05:09 -0400 |
commit | d36316738785c96dab2ee892762ed08c059fffde (patch) | |
tree | 168a7c0705b5bc8f0dee7ce4b511ccf71759d9b4 /src/components/media_manager/include/media_manager/audio/audio_stream_sender_thread.h | |
parent | 7f7fcbb998fb17f2954fd103349af67ea9b71a3f (diff) | |
parent | 83c5e805346d55ec7fb9f4ba8b6f6855d992273e (diff) | |
download | sdl_core-hotfix/templates_updates.tar.gz |
Merge pull request #2572 from smartdevicelink/release/5.0.05.0.0hotfix/templates_updatesfeature/show_app_menufeature/progress_bar_seekfeature/open-menu-rpcfeature/open-menu-rfeature/button
Release 5.0.0
Diffstat (limited to 'src/components/media_manager/include/media_manager/audio/audio_stream_sender_thread.h')
-rw-r--r-- | src/components/media_manager/include/media_manager/audio/audio_stream_sender_thread.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/components/media_manager/include/media_manager/audio/audio_stream_sender_thread.h b/src/components/media_manager/include/media_manager/audio/audio_stream_sender_thread.h index 3645a9cb81..a246e468b7 100644 --- a/src/components/media_manager/include/media_manager/audio/audio_stream_sender_thread.h +++ b/src/components/media_manager/include/media_manager/audio/audio_stream_sender_thread.h @@ -62,6 +62,12 @@ typedef enum { typedef enum { AT_INVALID = -1, AT_PCM = 0 } AudioType; +// AudioPassThru +typedef struct { + std::vector<uint8_t> binary_data; + int32_t session_key; +} AudioData; + /* * @brief AudioStreamSenderThread class used to read binary data written from * microphone @@ -104,6 +110,18 @@ class AudioStreamSenderThread : public threads::ThreadDelegate { */ bool SendEndAudioPassThru(); + /** + * @brief Creates AudioPassThru data chunk and inserts it + * to audio_pass_thru_messages_ + * + * @param session_key Id of application for which + * audio pass thru should be sent + * + * @param binary_data AudioPassThru data chunk + */ + void SendAudioPassThroughNotification(uint32_t session_key, + std::vector<uint8_t>& binary_data); + void sendAudioChunkToMobile(); bool getShouldBeStopped(); |