mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-20 01:50:26 -05:00
[player] Refactor player to better fit the queue refactor
This commit is contained in:
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)
|
||||
|
||||
Reference in New Issue
Block a user