ok, thanks for the code it works great, but i have one other question
i am trying to create a music player in which the user can select which music to play from a list
the problem is that sometimes two songs play at the same time
and sometimes no songs play at all
can someone look at this code and see whats wrong with it ?
// skip the first two song entries
if(selectedsong > 2&&dbReturnKey() == 1)
{
dbLoadMusic(media[selectedapp-2],selectedapp-2);
dbPlayMusic(selectedapp-2);
}
if(dbMusicPlaying(GetPlayingSong())&&dbMusicExist(selectedapp-2)&&dbReturnKey() == 1)
{
dbStopMusic(GetPlayingSong());
dbDeleteMusic(GetPlayingSong());
}