diff options
author | mio <[email protected]> | 2024-10-27 11:26:22 +1000 |
---|---|---|
committer | mio <[email protected]> | 2024-10-27 20:24:51 +1000 |
commit | ff2a5768dd4d199cb8bbbe2af4ea3fbb68a489f3 (patch) | |
tree | ac43561f394ed18780521cafc726510b3215ef4c /src/app/xineScope.h | |
parent | a3ea0ee70fe8590a96df03dca43ca77f3f28791e (diff) | |
download | codeine-ff2a5768dd4d199cb8bbbe2af4ea3fbb68a489f3.tar.gz codeine-ff2a5768dd4d199cb8bbbe2af4ea3fbb68a489f3.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]>
Diffstat (limited to 'src/app/xineScope.h')
-rw-r--r-- | src/app/xineScope.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/app/xineScope.h b/src/app/xineScope.h index 623d56d..99d7215 100644 --- a/src/app/xineScope.h +++ b/src/app/xineScope.h @@ -33,18 +33,23 @@ struct my_node_s int64_t vpts_end; }; -extern MyNode* const myList; - #ifdef __cplusplus extern "C" { +#endif + #if XINE_MAJOR_VERSION > 1 || (XINE_MAJOR_VERSION == 1 && XINE_MINOR_VERSION > 2) || \ (XINE_MAJOR_VERSION == 1 && XINE_MINOR_VERSION == 2 && XINE_SUB_VERSION >= 10) extern const plugin_info_t scope_plugin_info[]; #else xine_post_t* scope_plugin_new( xine_t*, xine_audio_port_t* ); #endif - int64_t scope_plugin_pts_per_smpls( void* ); + + int scope_plugin_channels(void *); + MyNode *scope_plugin_list(void *); + int64_t scope_plugin_pts_per_smpls(void *); + +#ifdef __cplusplus } #endif |