[dali_1.9.30] Merge branch 'devel/master'
[platform/core/uifw/dali-adaptor.git] / plugins / dali-feedback.cpp
index 99fb1be..68dcc04 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2018 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -35,7 +35,7 @@ using std::string;
 using namespace Dali;
 
 // The plugin factories
-extern "C" DALI_EXPORT_API Dali::FeedbackPlugin* CreateFeedbackPlugin(void)
+extern "C" DALI_ADAPTOR_API Dali::FeedbackPlugin* CreateFeedbackPlugin(void)
 {
   return new Dali::Plugin::DaliFeedback;
 }
@@ -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);