Dynamic info now pushes to the correct track

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
CQTexperiment
Christopher Snowhill 2022-02-12 07:29:02 -08:00
parent 455dc0d5c8
commit 6d09b72c1d
4 changed files with 5 additions and 5 deletions

View File

@ -761,7 +761,7 @@ NSDictionary *makeRGInfo(PlaylistEntry *pe) {
}
- (void)audioPlayer:(AudioPlayer *)player pushInfo:(NSDictionary *)info toTrack:(id)userInfo {
PlaylistEntry *pe = [playlistController currentEntry];
PlaylistEntry *pe = (PlaylistEntry *)userInfo;
[pe setMetadata:info];
[playlistView refreshCurrentTrack:self];
[self sendMetaData];

View File

@ -78,7 +78,7 @@
- (void)restartPlaybackAtCurrentPosition;
- (void)pushInfo:(NSDictionary *)info;
- (void)pushInfo:(NSDictionary *)info toTrack:(id)userInfo;
+ (NSArray *)fileTypes;
+ (NSArray *)schemes;

View File

@ -224,8 +224,8 @@
[self sendDelegateMethod:@selector(audioPlayer:restartPlaybackAtCurrentPosition:) withObject:[bufferChain userInfo] waitUntilDone:NO];
}
- (void)pushInfo:(NSDictionary *)info {
[self sendDelegateMethod:@selector(audioPlayer:pushInfo:toTrack:) withObject:info withObject:[bufferChain userInfo] waitUntilDone:NO];
- (void)pushInfo:(NSDictionary *)info toTrack:(id)userInfo {
[self sendDelegateMethod:@selector(audioPlayer:pushInfo:toTrack:) withObject:info withObject:userInfo waitUntilDone:NO];
}
- (void)setShouldContinue:(BOOL)s {

View File

@ -262,7 +262,7 @@
}
- (void)pushInfo:(NSDictionary *)info {
[controller pushInfo:info];
[controller pushInfo:info toTrack:userInfo];
}
- (void)setError:(BOOL)status {