summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSangchul Lee <sc11.lee@samsung.com>2022-09-23 10:42:44 +0900
committerSangchul Lee <sc11.lee@samsung.com>2022-09-23 10:46:42 +0900
commit5ca884f41eee4c6d7b415e5269cf355f71ce6a92 (patch)
treedc5c0e15d1dc7fb0bc0cc5873afca667421d0fb7
parentacb4a5d41cc2adf3432e188936281f2fbdbac8c6 (diff)
downloadgallery-5ca884f41eee4c6d7b415e5269cf355f71ce6a92.tar.gz
gallery-5ca884f41eee4c6d7b415e5269cf355f71ce6a92.tar.bz2
gallery-5ca884f41eee4c6d7b415e5269cf355f71ce6a92.zip
Remove sound-manager deprecated APItizen
Instead, sound_manager_add_device_running_changed_cb() is used. Change-Id: I558077b1197697a7297e3dc74dad57c3622c307c Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
-rw-r--r--gallery/model/SoundManager.cpp8
-rw-r--r--gallery/model/SoundManager.h2
2 files changed, 5 insertions, 5 deletions
diff --git a/gallery/model/SoundManager.cpp b/gallery/model/SoundManager.cpp
index b56c0d4..3fece2d 100644
--- a/gallery/model/SoundManager.cpp
+++ b/gallery/model/SoundManager.cpp
@@ -47,7 +47,7 @@ namespace gallery {
m_devConnChangedCbId);
}
if (m_devStateChangedCbId >= 0) {
- sound_manager_remove_device_state_changed_cb(m_devStateChangedCbId);
+ sound_manager_remove_device_running_changed_cb(m_devStateChangedCbId);
}
if (m_volumeChangedCbId >= 0) {
sound_manager_remove_volume_changed_cb(m_volumeChangedCbId);
@@ -63,10 +63,10 @@ namespace gallery {
CALLBACK_B(SoundManager::onDeviceConnectionChanged), this),
"sound_manager_add_device_connection_changed_cb() failed!");
- FAIL_RETURN(util::get(sound_manager_add_device_state_changed_cb,
+ FAIL_RETURN(util::get(sound_manager_add_device_running_changed_cb,
m_devStateChangedCbId, devMask,
CALLBACK_B(SoundManager::onDeviceStateChanged), this),
- "sound_manager_add_device_state_changed_cb() failed!");
+ "sound_manager_add_device_running_changed_cb() failed!");
FAIL_RETURN(util::get(sound_manager_add_volume_changed_cb,
m_volumeChangedCbId,
@@ -170,7 +170,7 @@ namespace gallery {
}
void SoundManager::onDeviceStateChanged(sound_device_h device,
- sound_device_state_e state)
+ bool isRunning)
{
updateMediaDeviceState();
}
diff --git a/gallery/model/SoundManager.h b/gallery/model/SoundManager.h
index 4a95acf..1427731 100644
--- a/gallery/model/SoundManager.h
+++ b/gallery/model/SoundManager.h
@@ -57,7 +57,7 @@ namespace gallery {
void onDeviceConnectionChanged(sound_device_h device, bool isConnected);
void onDeviceStateChanged(sound_device_h device,
- sound_device_state_e state);
+ bool isRunning);
void onVolumeChanged(sound_type_e type, unsigned int volume);
private: