summaryrefslogtreecommitdiff
path: root/span.h
diff options
context:
space:
mode:
authorhorchi <vdr@jwendel.de>2017-03-05 16:47:41 +0100
committerhorchi <vdr@jwendel.de>2017-03-05 16:47:41 +0100
commit22ffee20bbacbc3378e4ba0df5b7f0c3daaeffc0 (patch)
treede46c945c62d43d1febb027b5bfa075e58c5b69a /span.h
downloadvdr-plugin-graphtftng-0.6.16.tar.gz
vdr-plugin-graphtftng-0.6.16.tar.bz2
Diffstat (limited to 'span.h')
-rw-r--r--span.h65
1 files changed, 65 insertions, 0 deletions
diff --git a/span.h b/span.h
new file mode 100644
index 0000000..cf5507d
--- /dev/null
+++ b/span.h
@@ -0,0 +1,65 @@
+/*
+ * dspitems.c: A plugin for the Video Disk Recorder
+ *
+ * See the README file for copyright information and how to reach the author.
+ *
+ * Date: 26.05.07
+ */
+
+//***************************************************************************
+// Class Span Service
+//***************************************************************************
+
+#define SPAN_PROVIDER_CHECK_ID "Span-ProviderCheck-v1.0"
+#define SPAN_CLIENT_CHECK_ID "Span-ClientCheck-v1.0"
+#define SPAN_SET_PCM_DATA_ID "Span-SetPcmData-v1.0"
+#define SPAN_GET_BAR_HEIGHTS_ID "Span-GetBarHeights-v1.0"
+
+//***************************************************************************
+// Calss cSpanService
+//***************************************************************************
+
+class cSpanService
+{
+ public:
+
+ // Span requests to collect possible providers / clients
+
+ struct Span_Provider_Check_1_0
+ {
+ bool* isActive;
+ bool* isRunning;
+ };
+
+ struct Span_Client_Check_1_0
+ {
+ bool* isActive;
+ bool* isRunning;
+ };
+
+ // Span data
+
+ struct Span_SetPcmData_1_0
+ {
+ unsigned int length; // the length of the PCM-data
+ int* data; // the PCM-Data as 32-bit int, however only the lower 16-bit are used
+ // and you have to take care to hand in such data!
+ };
+
+ struct Span_GetBarHeights_v1_0
+ {
+ unsigned int bands; // number of bands to compute
+ unsigned int* barHeights; // the heights of the bars of the two channels combined
+ unsigned int* barHeightsLeftChannel; // the heights of the bars of the left channel
+ unsigned int* barHeightsRightChannel; // the heights of the bars of the right channel
+ unsigned int* volumeLeftChannel; // the volume of the left channels
+ unsigned int* volumeRightChannel; // the volume of the right channels
+ unsigned int* volumeBothChannels; // the combined volume of the two channels
+ const char* name; // name of the plugin that wants to get the data
+ // (must be unique for each client!)
+ unsigned int falloff; // bar falloff value
+ unsigned int* barPeaksBothChannels; // bar peaks of the two channels combined
+ unsigned int* barPeaksLeftChannel; // bar peaks of the left channel
+ unsigned int* barPeaksRightChannel; // bar peaks of the right channel
+ };
+};