diff --git a/CocosDenshion/proj.tizen/.project b/CocosDenshion/proj.tizen/.project
index 745d172e30..3f44ed4404 100644
--- a/CocosDenshion/proj.tizen/.project
+++ b/CocosDenshion/proj.tizen/.project
@@ -86,6 +86,16 @@
org.tizen.nativecpp.apichecker.core.tizenCppNature
+
+ src/OspPlayer.cpp
+ 1
+ PARENT-1-PROJECT_LOC/tizen/OspPlayer.cpp
+
+
+ src/OspPlayer.h
+ 1
+ PARENT-1-PROJECT_LOC/tizen/OspPlayer.h
+
src/SimpleAudioEngine.cpp1
diff --git a/CocosDenshion/tizen/OspPlayer.cpp b/CocosDenshion/tizen/OspPlayer.cpp
new file mode 100644
index 0000000000..f152d8d8c7
--- /dev/null
+++ b/CocosDenshion/tizen/OspPlayer.cpp
@@ -0,0 +1,246 @@
+/****************************************************************************
+Copyright (c) 2013 cocos2d-x.org
+Copyright (c) 2013 Lee, Jae-Hong
+
+http://www.cocos2d-x.org
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+****************************************************************************/
+
+#include "OspPlayer.h"
+
+using namespace Tizen::Media;
+
+OspPlayer::OspPlayer()
+ : __pPlayer(null)
+ , m_nSoundID(0)
+{
+ Initialize();
+}
+
+OspPlayer::~OspPlayer()
+{
+ Close();
+}
+
+result
+OspPlayer::Initialize()
+{
+ result r = E_SUCCESS;
+
+ __pPlayer = new (std::nothrow) Player();
+ if (__pPlayer == null)
+ {
+ AppLogException("pPlyaer = new (std::nothrow) Player() has failed");
+ return E_FAILURE;
+ }
+
+ r = __pPlayer->Construct(*this, null);
+ if (IsFailed(r))
+ {
+ AppLog("pPlayer->Construct has failed\n");
+ return E_FAILURE;
+ }
+
+ return r;
+}
+
+void
+OspPlayer::Open(const char* pFileName, unsigned int uId)
+{
+ result r = E_SUCCESS;
+
+ Close();
+
+ r = __pPlayer->OpenFile(pFileName);
+ if (IsFailed(r))
+ {
+ AppLog("pPlayer->OpenFile has failed\n");
+ }
+
+ m_nSoundID = uId;
+}
+
+void
+OspPlayer::Play(bool bLoop)
+{
+ result r = E_SUCCESS;
+
+ r = __pPlayer->SetLooping(bLoop);
+ if (IsFailed(r))
+ {
+ AppLog("pPlayer->SetLooping has failed\n");
+ return;
+ }
+
+ r = __pPlayer->Play();
+ if (IsFailed(r))
+ {
+ AppLog("pPlayer->Play has failed\n");
+ }
+}
+
+void
+OspPlayer::Pause()
+{
+ result r = E_SUCCESS;
+
+ r = __pPlayer->Pause();
+ if (IsFailed(r))
+ {
+ AppLog("pPlayer->Pause has failed\n");
+ }
+}
+
+void
+OspPlayer::Stop()
+{
+ result r = E_SUCCESS;
+
+ r = __pPlayer->Stop();
+ if (IsFailed(r))
+ {
+ AppLog("pPlayer->Stop has failed\n");
+ }
+}
+
+void
+OspPlayer::Resume()
+{
+ result r = E_SUCCESS;
+
+ if (__pPlayer->GetState() == PLAYER_STATE_PAUSED)
+ {
+ r = __pPlayer->Play();
+ if (IsFailed(r))
+ {
+ AppLog("pPlayer->Play has failed\n");
+ }
+ }
+}
+
+void
+OspPlayer::Rewind()
+{
+ result r = E_SUCCESS;
+
+ r = __pPlayer->SeekTo(0);
+ if (IsFailed(r))
+ {
+ AppLog("pPlayer->SeekTo has failed\n");
+ }
+}
+
+bool
+OspPlayer::IsPlaying()
+{
+ PlayerState state = __pPlayer->GetState();
+
+ return (state == PLAYER_STATE_PLAYING) ? true : false;
+}
+
+void
+OspPlayer::Close()
+{
+ result r = E_SUCCESS;
+
+ if (__pPlayer->GetState() == PLAYER_STATE_PLAYING)
+ {
+ r = __pPlayer->Stop();
+ if (IsFailed(r))
+ {
+ AppLog("pPlayer->Stop has failed\n");
+ }
+ }
+
+ r = __pPlayer->Close();
+ if (IsFailed(r))
+ {
+ AppLog("pPlayer->Close has failed\n");
+ }
+}
+
+unsigned int
+OspPlayer::GetSoundID()
+{
+ return m_nSoundID;
+}
+
+void
+OspPlayer::SetVolume(int volume)
+{
+ result r = E_SUCCESS;
+
+ if (volume > 100 || volume < 0)
+ {
+ return;
+ }
+
+ r = __pPlayer->SetVolume(volume);
+ if (IsFailed(r))
+ {
+ AppLog("pPlayer->SetVolume has failed\n");
+ }
+}
+
+int
+OspPlayer::GetVolume()
+{
+ return __pPlayer->GetVolume();
+}
+
+void
+OspPlayer::OnPlayerOpened(result r)
+{
+}
+
+void
+OspPlayer::OnPlayerEndOfClip(void)
+{
+}
+
+void
+OspPlayer::OnPlayerBuffering(int percent)
+{
+}
+
+void
+OspPlayer::OnPlayerErrorOccurred(Tizen::Media::PlayerErrorReason r)
+{
+}
+
+void
+OspPlayer::OnPlayerInterrupted(void)
+{
+}
+
+void
+OspPlayer::OnPlayerReleased(void)
+{
+}
+
+void
+OspPlayer::OnPlayerSeekCompleted(result r)
+{
+}
+
+void
+OspPlayer::OnPlayerAudioFocusChanged(void)
+{
+}
diff --git a/CocosDenshion/tizen/OspPlayer.h b/CocosDenshion/tizen/OspPlayer.h
new file mode 100644
index 0000000000..78d54d3571
--- /dev/null
+++ b/CocosDenshion/tizen/OspPlayer.h
@@ -0,0 +1,65 @@
+/****************************************************************************
+Copyright (c) 2013 cocos2d-x.org
+Copyright (c) 2013 Lee, Jae-Hong
+
+http://www.cocos2d-x.org
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+****************************************************************************/
+
+#ifndef _OSP_PLAYER_H_
+#define _OSP_PLAYER_H_
+
+#include
+
+class OspPlayer : public Tizen::Media::IPlayerEventListener
+{
+public:
+ OspPlayer();
+ ~OspPlayer();
+
+ result Initialize();
+ void Open(const char* pFileName, unsigned int uId);
+ void Play(bool bLoop);
+ void Pause();
+ void Stop();
+ void Resume();
+ void Rewind();
+ bool IsPlaying();
+ void SetVolume(int volume);
+ int GetVolume();
+ void Close();
+ unsigned int GetSoundID();
+
+protected:
+ void OnPlayerOpened(result r);
+ void OnPlayerEndOfClip(void);
+ void OnPlayerBuffering(int percent);
+ void OnPlayerErrorOccurred(Tizen::Media::PlayerErrorReason r);
+ void OnPlayerInterrupted(void);
+ void OnPlayerReleased(void);
+ void OnPlayerSeekCompleted(result r);
+ void OnPlayerAudioFocusChanged(void);
+
+private:
+ Tizen::Media::Player* __pPlayer;
+ unsigned int m_nSoundID;
+};
+
+#endif // _OSP_PLAYER_H_
diff --git a/CocosDenshion/tizen/SimpleAudioEngine.cpp b/CocosDenshion/tizen/SimpleAudioEngine.cpp
index 7a091f6a06..d90c1875cd 100644
--- a/CocosDenshion/tizen/SimpleAudioEngine.cpp
+++ b/CocosDenshion/tizen/SimpleAudioEngine.cpp
@@ -24,27 +24,34 @@ THE SOFTWARE.
****************************************************************************/
#include "SimpleAudioEngine.h"
-
+#include "OspPlayer.h"
#include "cocos2d.h"
+#include