From ff2a5768dd4d199cb8bbbe2af4ea3fbb68a489f3 Mon Sep 17 00:00:00 2001 From: mio Date: Sun, 27 Oct 2024 11:26:22 +1000 Subject: Update the xineScope to remove global variables. This patch updates xineScope.c to better align with Amarok's code. As a result, the analyzer is more accurate. For instance, when playing an audio file and there is a silent spot, the blocks will correctly "drop" to the bottom, leaving an empty analyzer. The previous behaviour would leave some blocks "stuck" in their position See: TDE/codeine#23 Signed-off-by: mio --- src/app/xineEngine.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/app/xineEngine.h') diff --git a/src/app/xineEngine.h b/src/app/xineEngine.h index 6f8170a..168080d 100644 --- a/src/app/xineEngine.h +++ b/src/app/xineEngine.h @@ -104,9 +104,10 @@ namespace Codeine xine_event_queue_t *m_eventQueue; xine_video_port_t *m_videoPort; xine_audio_port_t *m_audioPort; - xine_post_t *m_scope; + xine_post_t *m_post; xine_t *m_xine; + Engine::Scope m_scope; int64_t m_current_vpts; KURL m_url; -- cgit v1.2.3