[player] Refactor player to better fit the queue refactor

This commit is contained in:
chme 2015-09-02 18:31:43 +02:00
parent 1f53d7ab1a
commit e1147c00a1
4 changed files with 651 additions and 616 deletions

View File

@ -157,7 +157,7 @@ struct media_file_info {
uint32_t item_kind; /* song or movie */
uint32_t data_kind; /* dmap.datakind (asdk) */
uint64_t sample_count;
uint64_t sample_count; //TODO [unused] sample count is never set and therefor always 0
uint32_t compilation;
char artwork;

File diff suppressed because it is too large Load Diff

View File

@ -16,6 +16,9 @@ spotify_playback_play(struct media_file_info *mfi);
void
spotify_playback_pause_nonblock(void);
int
spotify_playback_resume(void);
int
spotify_playback_stop(void);

View File

@ -731,7 +731,7 @@ transcode_setup(struct transcode_ctx **nctx, struct media_file_info *mfi, off_t
}
ctx->duration = mfi->song_length;
ctx->samples = mfi->sample_count;
ctx->samples = mfi->sample_count; //TODO [unused] sample count is never set and therefor always 0
ctx->wavhdr = wavhdr;
if (wavhdr)