#include "Model/Ring.h"
#include "Utils/SoundManager.h"
#include "Utils/FeedbackManager.h"
+#include "Utils/Utils.h"
+
+#define DEFAULT_SOUND_PATH "ringtones/alarm.mp3"
namespace model {
void Ring::SoundPlay()
{
if (alarm_)
- utils::SoundManager::SoundPlay("/opt/share/settings/Ringtones/ringtone_sdk.mp3");
- //utils::SoundManager::SoundPlay(alarm_->GetMelody()); TODO
+ utils::SoundManager::SoundPlay(alarm_->GetMelody(), alarm_->GetVolume());
else
- utils::SoundManager::SoundPlay("/opt/share/settings/Ringtones/ringtone_sdk.mp3");
+ utils::SoundManager::SoundPlay(
+ utils::Utils::GetAppResourcePath(
+ utils::Utils::APP_DIR_SHARED_RESOURCE, DEFAULT_SOUND_PATH));
}
void Ring::SoundStop()