summaryrefslogtreecommitdiff
path: root/core/multimedia/opieplayer/wavplugin/wavplugin.h
Unidiff
Diffstat (limited to 'core/multimedia/opieplayer/wavplugin/wavplugin.h') (more/less context) (ignore whitespace changes)
-rw-r--r--core/multimedia/opieplayer/wavplugin/wavplugin.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/multimedia/opieplayer/wavplugin/wavplugin.h b/core/multimedia/opieplayer/wavplugin/wavplugin.h
index 19d1a8e..6ae6e06 100644
--- a/core/multimedia/opieplayer/wavplugin/wavplugin.h
+++ b/core/multimedia/opieplayer/wavplugin/wavplugin.h
@@ -8,30 +8,32 @@
8** Foundation and appearing in the file LICENSE.GPL included in the 8** Foundation and appearing in the file LICENSE.GPL included in the
9** packaging of this file. 9** packaging of this file.
10** 10**
11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
13** 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// L.J.Potter added changes Fri 02-15-2002
21
20#ifndef WAV_PLUGIN_H 22#ifndef WAV_PLUGIN_H
21#define WAV_PLUGIN_H 23#define WAV_PLUGIN_H
22 24
23#include <qstring.h> 25#include <qstring.h>
24#include <qapplication.h> 26#include <qapplication.h>
25#include <qpe/mediaplayerplugininterface.h> 27#include "../mediaplayerplugininterface.h"
26 28
27 29
28// #define OLD_MEDIAPLAYER_API 30// #define OLD_MEDIAPLAYER_API
29 31
30 32
31class WavPluginData; 33class WavPluginData;
32 34
33 35
34class WavPlugin : public MediaPlayerDecoder { 36class WavPlugin : public MediaPlayerDecoder {
35 37
36public: 38public:
37 WavPlugin(); 39 WavPlugin();
@@ -42,24 +44,25 @@ public:
42 double pluginVersion() { return 1.0; } 44 double pluginVersion() { return 1.0; }
43 45
44 bool isFileSupported( const QString& ); 46 bool isFileSupported( const QString& );
45 bool open( const QString& ); 47 bool open( const QString& );
46 bool close(); 48 bool close();
47 bool isOpen(); 49 bool isOpen();
48 const QString &fileInfo() { return strInfo = ""; } 50 const QString &fileInfo() { return strInfo = ""; }
49 51
50 // If decoder doesn't support audio then return 0 here 52 // If decoder doesn't support audio then return 0 here
51 int audioStreams(); 53 int audioStreams();
52 int audioChannels( int stream ); 54 int audioChannels( int stream );
53 int audioFrequency( int stream ); 55 int audioFrequency( int stream );
56 int audioBitsPerSample( int stream );
54 int audioSamples( int stream ); 57 int audioSamples( int stream );
55 bool audioSetSample( long sample, int stream ); 58 bool audioSetSample( long sample, int stream );
56 long audioGetSample( int stream ); 59 long audioGetSample( int stream );
57#ifdef OLD_MEDIAPLAYER_API 60#ifdef OLD_MEDIAPLAYER_API
58 bool audioReadMonoSamples( short *output, long samples, long& samplesRead, int stream ); 61 bool audioReadMonoSamples( short *output, long samples, long& samplesRead, int stream );
59 bool audioReadStereoSamples( short *output, long samples, long& samplesRead, int stream ); 62 bool audioReadStereoSamples( short *output, long samples, long& samplesRead, int stream );
60 bool audioReadSamples( short *output, int channel, long samples, int stream ); 63 bool audioReadSamples( short *output, int channel, long samples, int stream );
61 bool audioReReadSamples( short *output, int channel, long samples, int stream ); 64 bool audioReReadSamples( short *output, int channel, long samples, int stream );
62#else 65#else
63 bool audioReadSamples( short *output, int channels, long samples, long& samplesRead, int stream ); 66 bool audioReadSamples( short *output, int channels, long samples, long& samplesRead, int stream );
64#endif 67#endif
65 68