summaryrefslogtreecommitdiffstats
path: root/src/app/xineEngine.h
diff options
context:
space:
mode:
authormio <[email protected]>2024-10-27 11:26:22 +1000
committerMichele Calgaro <[email protected]>2024-10-28 09:16:23 +0900
commit55b425fe49ce8f28e0e7aac719e01bd42494b2fe (patch)
treea4edaf04f69a2edbadafe8eb91abf512ebf1f50a /src/app/xineEngine.h
parent4fe9282a9b13ac41e256f2b0fb4405dbcc46f2dd (diff)
downloadcodeine-55b425fe49ce8f28e0e7aac719e01bd42494b2fe.tar.gz
codeine-55b425fe49ce8f28e0e7aac719e01bd42494b2fe.zip
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 <[email protected]> (cherry picked from commit ff2a5768dd4d199cb8bbbe2af4ea3fbb68a489f3)
Diffstat (limited to 'src/app/xineEngine.h')
-rw-r--r--src/app/xineEngine.h3
1 files changed, 2 insertions, 1 deletions
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;