diff options
author | Sho Amano <samano@xevo.com> | 2018-03-27 03:35:24 +0900 |
---|---|---|
committer | Jacob Keeler <jacob.keeler@livioradio.com> | 2018-03-26 14:35:24 -0400 |
commit | ff693daafdd709693c86ff3c433eacb11c60b74a (patch) | |
tree | 5f559bbbb0d1bd9fcfdc0f43551771a7dc277e6a /src/components/include/application_manager | |
parent | 73f3298cf7f0a586475cdd6ab8a5dcca5f1da586 (diff) | |
download | sdl_core-ff693daafdd709693c86ff3c433eacb11c60b74a.tar.gz |
Fix/unregister while audio pass thru (#1757)
* fix build error in MockMediaManager
* Add SetMockMediaManager
* add AudioPassThru start/stop tests
* Add new BeginAudioPassThru() and EndAudioPassThru() methods
* fix: don't terminate AudioPassThru when another app is unregistered
* Append DEPRECATED macro only in interface header file and mock file.
* Use @deprecated comments
Diffstat (limited to 'src/components/include/application_manager')
-rw-r--r-- | src/components/include/application_manager/application_manager.h | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/src/components/include/application_manager/application_manager.h b/src/components/include/application_manager/application_manager.h index eb9159f0b3..c7a50199b1 100644 --- a/src/components/include/application_manager/application_manager.h +++ b/src/components/include/application_manager/application_manager.h @@ -390,17 +390,34 @@ class ApplicationManager { virtual void EndNaviServices(uint32_t app_id) = 0; /* @brief Starts audio passthru process + * @deprecated Use BeginAudioPassThru(uint32_t app_id) instead * * @return true on success, false if passthru is already in process */ - virtual bool BeginAudioPassThrough() = 0; + DEPRECATED virtual bool BeginAudioPassThrough() = 0; + + /** + * @brief Starts AudioPassThru process by given application + * @param app_id ID of the application which starts the process + * @return true if AudioPassThru can be started, false otherwise + */ + virtual bool BeginAudioPassThru(uint32_t app_id) = 0; /* * @brief Finishes already started audio passthru process + * @deprecated Use EndAudioPassThru(uint32_t app_id) instead * * @return true on success, false if passthru is not active */ - virtual bool EndAudioPassThrough() = 0; + DEPRECATED virtual bool EndAudioPassThrough() = 0; + + /** + * @brief Finishes already started AudioPassThru process by given application + * @param app_id ID of the application which started the process + * @return true if AudioPassThru process has been started with given + * application and thus it can be stopped, false otherwise + */ + virtual bool EndAudioPassThru(uint32_t app_id) = 0; virtual void ConnectToDevice(const std::string& device_mac) = 0; |