Fixed problem with track changes.

CQTexperiment
vspader 2007-10-21 21:01:40 +00:00
parent 9fed5759ae
commit 0eb32ff9f6
1 changed files with 2 additions and 18 deletions

View File

@ -271,26 +271,10 @@
- (void)audioPlayer:(AudioPlayer *)player requestNextStream:(id)userInfo - (void)audioPlayer:(AudioPlayer *)player requestNextStream:(id)userInfo
{ {
PlaylistEntry *curEntry = (PlaylistEntry *)userInfo; PlaylistEntry *curEntry = (PlaylistEntry *)userInfo;
PlaylistEntry *pe; PlaylistEntry *pe = [playlistController getNextEntry:curEntry];
if ([playlistController shuffle] == YES)
{
pe = [playlistController entryAtIndex:[[curEntry shuffleIndex] intValue] + 1];
}
else
{
pe = [playlistController entryAtIndex:[[curEntry index] intValue] + 1];
}
if (pe == nil)
{
[player setNextStream:nil];
}
else
{
[player setNextStream:[pe url] withUserInfo:pe]; [player setNextStream:[pe url] withUserInfo:pe];
} }
}
- (void)audioPlayer:(AudioPlayer *)player streamChanged:(id)userInfo - (void)audioPlayer:(AudioPlayer *)player streamChanged:(id)userInfo
{ {