Diffstat (limited to 'core/multimedia/opieplayer/wavplugin/wavplugin.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/multimedia/opieplayer/wavplugin/wavplugin.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/multimedia/opieplayer/wavplugin/wavplugin.h b/core/multimedia/opieplayer/wavplugin/wavplugin.h index 6ae6e06..1c8ba14 100644 --- a/core/multimedia/opieplayer/wavplugin/wavplugin.h +++ b/core/multimedia/opieplayer/wavplugin/wavplugin.h | |||
@@ -1,104 +1,105 @@ | |||
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 | 20 | // L.J.Potter added changes Fri 02-15-2002 |
21 | 21 | ||
22 | #ifndef WAV_PLUGIN_H | 22 | #ifndef WAV_PLUGIN_H |
23 | #define WAV_PLUGIN_H | 23 | #define WAV_PLUGIN_H |
24 | 24 | ||
25 | #include <qstring.h> | 25 | #include <qstring.h> |
26 | #include <qapplication.h> | 26 | #include <qapplication.h> |
27 | #include "../mediaplayerplugininterface.h" | 27 | /* #include "../mediaplayerplugininterface.h" */ |
28 | #include <qpe/mediaplayerplugininterface.h> | ||
28 | 29 | ||
29 | 30 | ||
30 | // #define OLD_MEDIAPLAYER_API | 31 | // #define OLD_MEDIAPLAYER_API |
31 | 32 | ||
32 | 33 | ||
33 | class WavPluginData; | 34 | class WavPluginData; |
34 | 35 | ||
35 | 36 | ||
36 | class WavPlugin : public MediaPlayerDecoder { | 37 | class WavPlugin : public MediaPlayerDecoder { |
37 | 38 | ||
38 | public: | 39 | public: |
39 | WavPlugin(); | 40 | WavPlugin(); |
40 | ~WavPlugin(); | 41 | ~WavPlugin(); |
41 | 42 | ||
42 | const char *pluginName() { return "WavPlugin"; } | 43 | const char *pluginName() { return "WavPlugin"; } |
43 | const char *pluginComment() { return "This is a simple plugin for playing wav files"; } | 44 | const char *pluginComment() { return "This is a simple plugin for playing wav files"; } |
44 | double pluginVersion() { return 1.0; } | 45 | double pluginVersion() { return 1.0; } |
45 | 46 | ||
46 | bool isFileSupported( const QString& ); | 47 | bool isFileSupported( const QString& ); |
47 | bool open( const QString& ); | 48 | bool open( const QString& ); |
48 | bool close(); | 49 | bool close(); |
49 | bool isOpen(); | 50 | bool isOpen(); |
50 | const QString &fileInfo() { return strInfo = ""; } | 51 | const QString &fileInfo() { return strInfo = ""; } |
51 | 52 | ||
52 | // If decoder doesn't support audio then return 0 here | 53 | // If decoder doesn't support audio then return 0 here |
53 | int audioStreams(); | 54 | int audioStreams(); |
54 | int audioChannels( int stream ); | 55 | int audioChannels( int stream ); |
55 | int audioFrequency( int stream ); | 56 | int audioFrequency( int stream ); |
56 | int audioBitsPerSample( int stream ); | 57 | /* int audioBitsPerSample( int stream ); */ |
57 | int audioSamples( int stream ); | 58 | int audioSamples( int stream ); |
58 | bool audioSetSample( long sample, int stream ); | 59 | bool audioSetSample( long sample, int stream ); |
59 | long audioGetSample( int stream ); | 60 | long audioGetSample( int stream ); |
60 | #ifdef OLD_MEDIAPLAYER_API | 61 | #ifdef OLD_MEDIAPLAYER_API |
61 | bool audioReadMonoSamples( short *output, long samples, long& samplesRead, int stream ); | 62 | bool audioReadMonoSamples( short *output, long samples, long& samplesRead, int stream ); |
62 | bool audioReadStereoSamples( short *output, long samples, long& samplesRead, int stream ); | 63 | bool audioReadStereoSamples( short *output, long samples, long& samplesRead, int stream ); |
63 | bool audioReadSamples( short *output, int channel, long samples, int stream ); | 64 | bool audioReadSamples( short *output, int channel, long samples, int stream ); |
64 | bool audioReReadSamples( short *output, int channel, long samples, int stream ); | 65 | bool audioReReadSamples( short *output, int channel, long samples, int stream ); |
65 | #else | 66 | #else |
66 | bool audioReadSamples( short *output, int channels, long samples, long& samplesRead, int stream ); | 67 | bool audioReadSamples( short *output, int channels, long samples, long& samplesRead, int stream ); |
67 | #endif | 68 | #endif |
68 | 69 | ||
69 | // If decoder doesn't support video then return 0 here | 70 | // If decoder doesn't support video then return 0 here |
70 | int videoStreams() { return 0; } | 71 | int videoStreams() { return 0; } |
71 | int videoWidth( int ) { return 0; } | 72 | int videoWidth( int ) { return 0; } |
72 | int videoHeight( int ) { return 0; } | 73 | int videoHeight( int ) { return 0; } |
73 | double videoFrameRate( int ) { return 0.0; } | 74 | double videoFrameRate( int ) { return 0.0; } |
74 | int videoFrames( int ) { return 0; } | 75 | int videoFrames( int ) { return 0; } |
75 | bool videoSetFrame( long, int ) { return FALSE; } | 76 | bool videoSetFrame( long, int ) { return FALSE; } |
76 | long videoGetFrame( int ) { return 0; } | 77 | long videoGetFrame( int ) { return 0; } |
77 | bool videoReadFrame( unsigned char **, int, int, int, int, ColorFormat, int ) { return FALSE; } | 78 | bool videoReadFrame( unsigned char **, int, int, int, int, ColorFormat, int ) { return FALSE; } |
78 | bool videoReadScaledFrame( unsigned char **, int, int, int, int, int, int, ColorFormat, int ) { return FALSE; } | 79 | bool videoReadScaledFrame( unsigned char **, int, int, int, int, int, int, ColorFormat, int ) { return FALSE; } |
79 | bool videoReadYUVFrame( char *, char *, char *, int, int, int, int, int ) { return FALSE; } | 80 | bool videoReadYUVFrame( char *, char *, char *, int, int, int, int, int ) { return FALSE; } |
80 | 81 | ||
81 | // Profiling | 82 | // Profiling |
82 | double getTime(); | 83 | double getTime(); |
83 | 84 | ||
84 | // Ignore if these aren't supported | 85 | // Ignore if these aren't supported |
85 | bool setSMP( int ) { return FALSE; } | 86 | bool setSMP( int ) { return FALSE; } |
86 | bool setMMX( bool ) { return FALSE; } | 87 | bool setMMX( bool ) { return FALSE; } |
87 | 88 | ||
88 | // Capabilities | 89 | // Capabilities |
89 | bool supportsAudio() { return TRUE; } | 90 | bool supportsAudio() { return TRUE; } |
90 | bool supportsVideo() { return FALSE; } | 91 | bool supportsVideo() { return FALSE; } |
91 | bool supportsYUV() { return FALSE; } | 92 | bool supportsYUV() { return FALSE; } |
92 | bool supportsMMX() { return TRUE; } | 93 | bool supportsMMX() { return TRUE; } |
93 | bool supportsSMP() { return FALSE; } | 94 | bool supportsSMP() { return FALSE; } |
94 | bool supportsStereo() { return TRUE; } | 95 | bool supportsStereo() { return TRUE; } |
95 | bool supportsScaling() { return FALSE; } | 96 | bool supportsScaling() { return FALSE; } |
96 | 97 | ||
97 | long getPlayTime() { return -1; } | 98 | long getPlayTime() { return -1; } |
98 | 99 | ||
99 | private: | 100 | private: |
100 | WavPluginData *d; | 101 | WavPluginData *d; |
101 | QString strInfo; | 102 | QString strInfo; |
102 | 103 | ||
103 | }; | 104 | }; |
104 | 105 | ||