summaryrefslogtreecommitdiff
path: root/core/multimedia/opieplayer/libmad/libmadplugin.h
Unidiff
Diffstat (limited to 'core/multimedia/opieplayer/libmad/libmadplugin.h') (more/less context) (ignore whitespace changes)
-rw-r--r--core/multimedia/opieplayer/libmad/libmadplugin.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/core/multimedia/opieplayer/libmad/libmadplugin.h b/core/multimedia/opieplayer/libmad/libmadplugin.h
index 46cd4a1..ee1ca9d 100644
--- a/core/multimedia/opieplayer/libmad/libmadplugin.h
+++ b/core/multimedia/opieplayer/libmad/libmadplugin.h
@@ -14,13 +14,13 @@
14** See http://www.trolltech.com/gpl/ for GPL licensing information. 14** See http://www.trolltech.com/gpl/ for GPL licensing information.
15** 15**
16** Contact info@trolltech.com if any conditions of this licensing are 16** Contact info@trolltech.com if any conditions of this licensing are
17** not clear to you. 17** not clear to you.
18** 18**
19**********************************************************************/ 19**********************************************************************/
20#ifndef LIBMAD_PLUGIN_H 20#ifndef LIBMAD_PLUGIN_H
21#define LIBMAD_PLUGIN_H 21#define LIBMAD_PLUGIN_H
22 22
23#include <qstring.h> 23#include <qstring.h>
24#include <qpe/mediaplayerplugininterface.h> 24#include <qpe/mediaplayerplugininterface.h>
25/* #include "../mediaplayerplugininterface.h" */ 25/* #include "../mediaplayerplugininterface.h" */
26 26
@@ -40,19 +40,20 @@ public:
40 const char *pluginName() { return "LibMadPlugin"; } 40 const char *pluginName() { return "LibMadPlugin"; }
41 const char *pluginComment() { return "This is the libmad library that has been wrapped as a plugin"; } 41 const char *pluginComment() { return "This is the libmad library that has been wrapped as a plugin"; }
42 double pluginVersion() { return 1.0; } 42 double pluginVersion() { return 1.0; }
43 43
44 bool isFileSupported( const QString& ); 44 bool isFileSupported( const QString& );
45 bool open( const QString& ); 45 bool open( const QString& );
46
46 bool close(); 47 bool close();
47 bool isOpen(); 48 bool isOpen();
48 const QString &fileInfo() { return info; } 49 const QString &fileInfo() { return info; }
49 50
50 // If decoder doesn't support audio then return 0 here 51 // If decoder doesn't support audio then return 0 here
51 int audioStreams(); 52 int audioStreams();
52 int audioChannels( int stream ); 53 int audioChannels( int stream );
53 int audioFrequency( int stream ); 54 int audioFrequency( int stream );
54 int audioSamples( int stream ); 55 int audioSamples( int stream );
55 bool audioSetSample( long sample, int stream ); 56 bool audioSetSample( long sample, int stream );
56/* int audioBitsPerSample(int) {return 0;} */ 57/* int audioBitsPerSample(int) {return 0;} */
57 long audioGetSample( int stream ); 58 long audioGetSample( int stream );
58#ifdef OLD_MEDIAPLAYER_API 59#ifdef OLD_MEDIAPLAYER_API
@@ -98,12 +99,16 @@ public:
98 bool supportsStereo() { return TRUE; } 99 bool supportsStereo() { return TRUE; }
99 bool supportsScaling() { return FALSE; } 100 bool supportsScaling() { return FALSE; }
100 101
101 long getPlayTime() { return -1; } 102 long getPlayTime() { return -1; }
102 103
103private: 104private:
105 int tcp_open(char *address, int port);
106 int http_read_line(int tcp_sock, char *buf, int size) ;
107 int http_open(const QString& path );
108
104 LibMadPluginData *d; 109 LibMadPluginData *d;
105 QString info; 110 QString info;
106int bufferSize; 111int bufferSize;
107}; 112};
108 113
109 114