From: Priya Kohli Date: Mon, 26 Aug 2019 06:32:37 +0000 (+0530) Subject: [TBT][Sound][TFDF-4122][Sound and Volume issue fix] X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=72fa4611aa36da64c05718eda019c07ebf705a63;p=test%2Ftct%2Fnative%2Fbehavior.git [TBT][Sound][TFDF-4122][Sound and Volume issue fix] Change-Id: I74ee2d800909b469f9d5991556eac8292c73e607 Signed-off-by: Priya Kohli --- diff --git a/release/binary-armv7l/org.tizen.tbtcoreapp-1.0.0-arm.tpk b/release/binary-armv7l/org.tizen.tbtcoreapp-1.0.0-arm.tpk index 5dbd7e7..a784cfd 100755 Binary files a/release/binary-armv7l/org.tizen.tbtcoreapp-1.0.0-arm.tpk and b/release/binary-armv7l/org.tizen.tbtcoreapp-1.0.0-arm.tpk differ diff --git a/release/binary-x86/org.tizen.tbtcoreapp-1.0.0-x86.tpk b/release/binary-x86/org.tizen.tbtcoreapp-1.0.0-x86.tpk index 4a85615..91aeb01 100755 Binary files a/release/binary-x86/org.tizen.tbtcoreapp-1.0.0-x86.tpk and b/release/binary-x86/org.tizen.tbtcoreapp-1.0.0-x86.tpk differ diff --git a/tbtcoreapp/src/view/tbt-sound-view.c b/tbtcoreapp/src/view/tbt-sound-view.c index c36a727..0de8dff 100644 --- a/tbtcoreapp/src/view/tbt-sound-view.c +++ b/tbtcoreapp/src/view/tbt-sound-view.c @@ -98,7 +98,6 @@ static Eina_Bool __progressbar_timer_cb(void *data) double value = 0.0; value = elm_progressbar_value_get(view->volume_bar); - if(value == 1.0) value = 0.0; value = value + 0.01; elm_progressbar_value_set(view->volume_bar, value); @@ -501,6 +500,8 @@ static player_h create_player(sound_view *this) player_h player = NULL; int ret ; + float left = 1.0; + float right = 1.0; ret = player_create(&player); RETVM_IF(ret != PLAYER_ERROR_NONE, NULL, "player_create fail > Error = %s", get_player_error(ret)); @@ -512,7 +513,13 @@ static player_h create_player(sound_view *this) // DBG( "player_set_sound_type fail > Error = %s", get_player_error(ret)); // } - ret = player_set_volume(player, 1.0, 1.0); + if(this->view->tbt_info->apptype == TBT_APP_SOUND_VOLUME) + { + left = 0.0; + right = 0.0; + } + + ret = player_set_volume(player, left, right); if(ret != PLAYER_ERROR_NONE) { DBG( "player_set_volume fail > Error = %s", get_player_error(ret));