Support and General Use > Audio Playback, Database and Playlists
Sansa Clip+ can Rockbox repeat current track but allow skip to next track button
NukesGoBoom:
I tried to find the link to post to the mailing list but could not find it, where should I go to be able to post to this mailing list so that the developers can consider my idea?
For the time being I will post in the feature ideas forum and hope that someone else agrees with me and decides to have a go at it. Hopefully it should be a relatively simple change and not cause that much difficulty to code, but then again I have no experience in such matter.
Thanks for your help so far and I will go over there and post it right now.
yapper:
http://www.rockbox.org/mail/
adw:
I'm trying to find out how to implement this. I have traced the processing of ACTION_WPS_SKIPNEXT across several files to "apps/playback.c" where I see
--- Code: ---/* Skip the specified number of tracks forward or backward from the current */
void audio_skip(int offset)
{
/* If offset has to be backed-out to stay in range, no skip is done */
int accum = skip_offset + offset;
while (offset != 0 && !playlist_check(accum))
{
offset += offset < 0 ? 1 : -1;
accum = skip_offset + offset;
}
if (offset != 0)
{
...
}
else
{
/* No more tracks */
}
--- End code ---
This makes me think that, when global_settings.repeat_mode = REPEAT_ONE, the playlist contains only the one track to be repeated?
If so, it would be difficult to skip to the next track as it is not in the playlist.
Am I on the right track? Can anyone give me a hint?
saratoga:
In repeat mode only one track is in the playlist and hence buffered. Buffering other tracks that weren't going to be played would waste power.
You probably need to find the next track and insert it into a new playlist.
adw:
Saratoga, thanks for clarifying.
Instead of finding the next track and replacing the old track by the new track in the single-item playlist, would it be an option to
--- Code: ---if (global_settings.repeat_mode == REPEAT_ONE) {
global_settings.repeat_mode = REPEAT_OFF;
[skip track];
global_settings.repeat_mode = REPEAT_ONE;
}
--- End code ---
or am I missing something?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version