[Tizen] Fix feedback sound API 77/236577/1 accepted/tizen/unified/20200619.121804 submit/tizen/20200618.073641
authorHeeyong Song <heeyong.song@samsung.com>
Thu, 18 Jun 2020 06:42:22 +0000 (15:42 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Thu, 18 Jun 2020 07:18:24 +0000 (16:18 +0900)
mm_sound_play_keysound() should be use with mm_sound_stop_keysound().

Change-Id: I4197a848508e12f880b30bded19d8c918b1af7bb

plugins/dali-feedback.cpp

index c53935f..68dcc04 100644 (file)
@@ -82,7 +82,7 @@ int DaliFeedback::PlaySound( const std::string& fileName )
 
 void DaliFeedback::StopSound( int handle )
 {
-  int errorCode = mm_sound_stop_sound( handle );
+  int errorCode = mm_sound_stop_keysound( NULL );
   if( errorCode < 0 )
   {
     DEBUG_PRINTF( "StopSound() handle = %d failed with error code = %d\n", handle, errorCode);