#include <app_debug.h>
#include <sound_manager.h>
+#include <sound_manager_internal.h>
#include "define.h"
#include "volume.h"
mute = is_mute;
if (mute)
- sound_manager_set_volume(SOUND_TYPE_MEDIA, MUTE_VALUE);
+ sound_manager_set_master_volume(MUTE_VALUE);
else
- sound_manager_set_volume(SOUND_TYPE_MEDIA, volume);
+ sound_manager_set_master_volume(volume);
return 0;
}
return -1;
}
- r = sound_manager_set_volume(SOUND_TYPE_MEDIA, vol);
+ r = sound_manager_set_master_volume(vol);
if (r < 0) {
_ERR("failed to set volume");
return -1;
if (volume_is_mute())
return volume;
- r = sound_manager_get_volume(SOUND_TYPE_MEDIA, &vol);
+ r = sound_manager_get_master_volume(&vol);
if (r < 0)
return -1;