Change-Id: I51017df2b1010d9e62eeacf1a4105012bb4e9d26
Signed-off-by: Kim Tae Soo <taesoo46.kim@samsung.com>
bool RemoveListener(IMusicControllerListener *listener);
bool GetCurrentSongIndex(int *ind);
- bool SetCurrentSongIndex(int ind);
bool GetTotalSongs(int *ts);
bool GetSonginfoFromIndex(int index, CSongInfo **const csinfo);
}
-bool CMusicController::SetCurrentSongIndex(int index)
-{
- ASSERT(m);
-
- if (!m->pPlaylist->FlagCreate()) {
- _ERR("NULL received");
- return false;
- }
-
- if (!m->pPlaylist->SetCurSongIndex(index)) {
- _ERR(" playlist get current song index failed");
- return false;
- }
-
- m->initial_index = index;
-
- return true;
-}
-
-
bool CMusicController::GetTotalSongs(int *ts)
{
ASSERT(m);
Start();
+ m->initial_index = index;
+
return true;
}