summaryrefslogtreecommitdiffstats
path: root/src/app/xineScope.h
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2020-07-24 15:04:55 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2020-07-25 15:36:00 +0900
commita3481d8b74ad58529aa56a9d604df953476605a7 (patch)
treee2b4c630d7d4323114980b78c1b74da3ee00fa9c /src/app/xineScope.h
parent24da8f541d710a1e13580def7b6837ed82207ff5 (diff)
downloadcodeine-a3481d8b74ad58529aa56a9d604df953476605a7.tar.gz
codeine-a3481d8b74ad58529aa56a9d604df953476605a7.zip
Fixed xine scope plugin functionality with xine 1.2.10.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 304d3a226c20e0da7ac2f4dedbda3876a1b817f9)
Diffstat (limited to 'src/app/xineScope.h')
-rw-r--r--src/app/xineScope.h89
1 files changed, 51 insertions, 38 deletions
diff --git a/src/app/xineScope.h b/src/app/xineScope.h
index f2dae75..623d56d 100644
--- a/src/app/xineScope.h
+++ b/src/app/xineScope.h
@@ -1,38 +1,51 @@
-/* Author: Max Howell <max.howell@methylblue.com>, (C) 2004
- Copyright: See COPYING file that comes with this distribution
-
- This has to be a c file or for some reason it won't link! (GCC 3.4.1)
-*/
-
-#ifndef XINESCOPE_H
-#define XINESCOPE_H
-
-/* need access to some stuff for scope time stamping */
-#define METRONOM_INTERNAL
-
-#include <sys/types.h>
-#include <xine/metronom.h>
-
-typedef struct my_node_s MyNode;
-
-struct my_node_s
-{
- MyNode *next;
- int16_t *mem;
- int num_frames;
- int64_t vpts;
- int64_t vpts_end;
-};
-
-extern metronom_t* const myMetronom;
-extern MyNode* const myList;
-
-#ifdef __cplusplus
-extern "C"
-{
- xine_post_t*
- scope_plugin_new( xine_t*, xine_audio_port_t* );
-}
-#endif
-
-#endif
+/* Author: Max Howell <max.howell@methylblue.com>, (C) 2004
+ Copyright: See COPYING file that comes with this distribution
+
+ This has to be a c file or for some reason it won't link! (GCC 3.4.1)
+*/
+
+#ifndef XINESCOPE_H
+#define XINESCOPE_H
+
+/* need access to some stuff for scope time stamping */
+#define METRONOM_INTERNAL
+
+#include <sys/types.h>
+#include <xine/metronom.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+#include <xine/xine_plugin.h>
+#ifdef __cplusplus
+}
+#endif
+
+typedef struct my_node_s MyNode;
+
+struct my_node_s
+{
+ MyNode *next;
+ int16_t *mem;
+ int num_frames;
+ int64_t vpts;
+ int64_t vpts_end;
+};
+
+extern MyNode* const myList;
+
+#ifdef __cplusplus
+extern "C"
+{
+#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* );
+}
+#endif
+
+#endif