summaryrefslogtreecommitdiff
path: root/core/multimedia/opieplayer/libmad/libmadplugin.h
authorharlekin <harlekin>2002-04-20 18:38:39 (UTC)
committer harlekin <harlekin>2002-04-20 18:38:39 (UTC)
commit703c9c483b5e3fa6d2090398d6ee3a5638326b02 (patch) (unidiff)
tree1e965c35afc244ae31f5842047fe27bb2dd3f2cc /core/multimedia/opieplayer/libmad/libmadplugin.h
parent758c9e817087252894b15c6f7476c1f16a02f65d (diff)
downloadopie-703c9c483b5e3fa6d2090398d6ee3a5638326b02.zip
opie-703c9c483b5e3fa6d2090398d6ee3a5638326b02.tar.gz
opie-703c9c483b5e3fa6d2090398d6ee3a5638326b02.tar.bz2
ugly hack for the beginning
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
@@ -17,7 +17,7 @@
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>
@@ -43,13 +43,14 @@ public:
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 );
@@ -101,6 +102,10 @@ public:
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;