Diffstat (limited to 'core/multimedia/opieplayer/wavplugin/wavplugin.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/multimedia/opieplayer/wavplugin/wavplugin.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/core/multimedia/opieplayer/wavplugin/wavplugin.h b/core/multimedia/opieplayer/wavplugin/wavplugin.h index 6afd67e..19d1a8e 100644 --- a/core/multimedia/opieplayer/wavplugin/wavplugin.h +++ b/core/multimedia/opieplayer/wavplugin/wavplugin.h | |||
@@ -1,81 +1,77 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. | 2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of Qtopia Environment. | 4 | ** This file is part of Qtopia Environment. |
5 | ** | 5 | ** |
6 | ** This file may be distributed and/or modified under the terms of the | 6 | ** This file may be distributed and/or modified under the terms of the |
7 | ** GNU General Public License version 2 as published by the Free Software | 7 | ** GNU General Public License version 2 as published by the Free Software |
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 | |||
22 | #ifndef WAV_PLUGIN_H | 20 | #ifndef WAV_PLUGIN_H |
23 | #define WAV_PLUGIN_H | 21 | #define WAV_PLUGIN_H |
24 | 22 | ||
25 | |||
26 | #include <qstring.h> | 23 | #include <qstring.h> |
27 | #include <qapplication.h> | 24 | #include <qapplication.h> |
28 | #include "../mediaplayerplugininterface.h" | 25 | #include <qpe/mediaplayerplugininterface.h> |
29 | 26 | ||
30 | 27 | ||
31 | // #define OLD_MEDIAPLAYER_API | 28 | // #define OLD_MEDIAPLAYER_API |
32 | 29 | ||
33 | 30 | ||
34 | class WavPluginData; | 31 | class WavPluginData; |
35 | 32 | ||
36 | 33 | ||
37 | class WavPlugin : public MediaPlayerDecoder { | 34 | class WavPlugin : public MediaPlayerDecoder { |
38 | 35 | ||
39 | public: | 36 | public: |
40 | WavPlugin(); | 37 | WavPlugin(); |
41 | ~WavPlugin(); | 38 | ~WavPlugin(); |
42 | 39 | ||
43 | const char *pluginName() { return "WavPlugin"; } | 40 | const char *pluginName() { return "WavPlugin"; } |
44 | const char *pluginComment() { return "This is a simple plugin for playing wav files"; } | 41 | const char *pluginComment() { return "This is a simple plugin for playing wav files"; } |
45 | double pluginVersion() { return 1.0; } | 42 | double pluginVersion() { return 1.0; } |
46 | 43 | ||
47 | bool isFileSupported( const QString& ); | 44 | bool isFileSupported( const QString& ); |
48 | bool open( const QString& ); | 45 | bool open( const QString& ); |
49 | bool close(); | 46 | bool close(); |
50 | bool isOpen(); | 47 | bool isOpen(); |
51 | const QString &fileInfo() { return strInfo = ""; } | 48 | const QString &fileInfo() { return strInfo = ""; } |
52 | 49 | ||
53 | // If decoder doesn't support audio then return 0 here | 50 | // If decoder doesn't support audio then return 0 here |
54 | int audioStreams(); | 51 | int audioStreams(); |
55 | int audioChannels( int stream ); | 52 | int audioChannels( int stream ); |
56 | int audioFrequency( int stream ); | 53 | int audioFrequency( int stream ); |
57 | int audioBitsPerSample( int stream ); | ||
58 | int audioSamples( int stream ); | 54 | int audioSamples( int stream ); |
59 | bool audioSetSample( long sample, int stream ); | 55 | bool audioSetSample( long sample, int stream ); |
60 | long audioGetSample( int stream ); | 56 | long audioGetSample( int stream ); |
61 | #ifdef OLD_MEDIAPLAYER_API | 57 | #ifdef OLD_MEDIAPLAYER_API |
62 | bool audioReadMonoSamples( short *output, long samples, long& samplesRead, int stream ); | 58 | bool audioReadMonoSamples( short *output, long samples, long& samplesRead, int stream ); |
63 | bool audioReadStereoSamples( short *output, long samples, long& samplesRead, int stream ); | 59 | bool audioReadStereoSamples( short *output, long samples, long& samplesRead, int stream ); |
64 | bool audioReadSamples( short *output, int channel, long samples, int stream ); | 60 | bool audioReadSamples( short *output, int channel, long samples, int stream ); |
65 | bool audioReReadSamples( short *output, int channel, long samples, int stream ); | 61 | bool audioReReadSamples( short *output, int channel, long samples, int stream ); |
66 | #else | 62 | #else |
67 | bool audioReadSamples( short *output, int channels, long samples, long& samplesRead, int stream ); | 63 | bool audioReadSamples( short *output, int channels, long samples, long& samplesRead, int stream ); |
68 | #endif | 64 | #endif |
69 | 65 | ||
70 | // If decoder doesn't support video then return 0 here | 66 | // If decoder doesn't support video then return 0 here |
71 | int videoStreams() { return 0; } | 67 | int videoStreams() { return 0; } |
72 | int videoWidth( int ) { return 0; } | 68 | int videoWidth( int ) { return 0; } |
73 | int videoHeight( int ) { return 0; } | 69 | int videoHeight( int ) { return 0; } |
74 | double videoFrameRate( int ) { return 0.0; } | 70 | double videoFrameRate( int ) { return 0.0; } |
75 | int videoFrames( int ) { return 0; } | 71 | int videoFrames( int ) { return 0; } |
76 | bool videoSetFrame( long, int ) { return FALSE; } | 72 | bool videoSetFrame( long, int ) { return FALSE; } |
77 | long videoGetFrame( int ) { return 0; } | 73 | long videoGetFrame( int ) { return 0; } |
78 | bool videoReadFrame( unsigned char **, int, int, int, int, ColorFormat, int ) { return FALSE; } | 74 | bool videoReadFrame( unsigned char **, int, int, int, int, ColorFormat, int ) { return FALSE; } |
79 | bool videoReadScaledFrame( unsigned char **, int, int, int, int, int, int, ColorFormat, int ) { return FALSE; } | 75 | bool videoReadScaledFrame( unsigned char **, int, int, int, int, int, int, ColorFormat, int ) { return FALSE; } |
80 | bool videoReadYUVFrame( char *, char *, char *, int, int, int, int, int ) { return FALSE; } | 76 | bool videoReadYUVFrame( char *, char *, char *, int, int, int, int, int ) { return FALSE; } |
81 | 77 | ||