[sound] Add internal header for supporting removed APIs 10/281910/2 accepted/tizen/unified/20220927.132324 submit/tizen/20220923.083644
authorPiotr Kosko/Tizen API (PLT) /SRPOL/Engineer/Samsung Electronics <p.kosko@samsung.com>
Fri, 23 Sep 2022 06:11:20 +0000 (08:11 +0200)
committerPiotr Kosko/Tizen API (PLT) /SRPOL/Engineer/Samsung Electronics <p.kosko@samsung.com>
Fri, 23 Sep 2022 07:46:55 +0000 (09:46 +0200)
SOUND_DEVICE_STATE_DEPRECATED_ACTIVATED_MASK was removed from public
API, thus we need to add internal header to resolve build break.

[Verification] Code compiles without errors.

Change-Id: I4b0007b6cd4635cacccbde25f1d974f213309d0d

src/sound/sound_instance.cc

index 7d493b9..a9e4462 100644 (file)
@@ -23,6 +23,7 @@
 #include "common/platform_exception.h"
 #include "common/tools.h"
 #include "sound_manager.h"
+#include "sound_manager_internal.h"
 
 namespace extension {
 namespace sound {
@@ -176,7 +177,7 @@ void SoundInstance::SoundManagerGetConnectedDeviceList(const picojson::value& ar
 void SoundInstance::SoundManagerGetActivatedDeviceList(const picojson::value& args,
                                                        picojson::object& out) {
   ScopeLogger();
-  manager_.GetDeviceList(SOUND_DEVICE_STATE_ACTIVATED_MASK, out);
+  manager_.GetDeviceList((sound_device_mask_e)SOUND_DEVICE_STATE_DEPRECATED_ACTIVATED_MASK, out);
 }
 
 void SoundInstance::SoundManagerAddDeviceStateChangeListener(const picojson::value& args,