From abef23608152a2839c34dcfc283d1561b3eadd45 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Fri, 24 Nov 2017 07:55:56 -0500 Subject: Do playback restarts the proper way It isn't necessary to explicitly stop and restart playback to force it to update something that must cause rebuffering. Change-Id: I6ff5394fcafc7374af67ef9fbf9022bb4a79b773 --- apps/playback.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'apps/playback.h') diff --git a/apps/playback.h b/apps/playback.h index 177768ded3..8a63bd7907 100644 --- a/apps/playback.h +++ b/apps/playback.h @@ -62,12 +62,18 @@ int playback_claim_aa_slot(struct dim *dim); * Save to call from other threads */ void playback_release_aa_slot(int slot); +/* + * Tells playback to sync buffered album art dimensions + * + * Save to call from other threads */ +void playback_update_aa_dims(void); + struct bufopen_bitmap_data { struct dim *dim; struct mp3_albumart *embedded_albumart; }; -#endif +#endif /* HAVE_ALBUMART */ /* Functions */ int audio_track_count(void); @@ -79,6 +85,9 @@ void audio_set_cuesheet(bool enable); #ifdef HAVE_CROSSFADE void audio_set_crossfade(int enable); #endif +#ifdef HAVE_PLAY_FREQ +void audio_set_playback_frequency(int setting); +#endif size_t audio_get_filebuflen(void); -- cgit v1.2.3