[player] Refactor player to better fit the queue refactor
This commit is contained in:
parent
1f53d7ab1a
commit
e1147c00a1
2
src/db.h
2
src/db.h
|
@ -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;
|
||||
|
||||
|
|
1260
src/player.c
1260
src/player.c
File diff suppressed because it is too large
Load Diff
|
@ -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);
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue