From a99347380a9006ec81a9dba2340d6aaab690a86e Mon Sep 17 00:00:00 2001 From: bipolar Date: Sun, 03 Mar 2002 17:13:17 +0000 Subject: commited by ljp (llornkcor) reverted to qpe's interface for compatibility. Added playlist features: save, remove, and have different ones. Uncommented code for background image and added opielogo. --- (limited to 'core/multimedia/opieplayer/libmpeg3/libmpeg3plugin.h') diff --git a/core/multimedia/opieplayer/libmpeg3/libmpeg3plugin.h b/core/multimedia/opieplayer/libmpeg3/libmpeg3plugin.h index bd31706..b573e84 100644 --- a/core/multimedia/opieplayer/libmpeg3/libmpeg3plugin.h +++ b/core/multimedia/opieplayer/libmpeg3/libmpeg3plugin.h @@ -24,8 +24,7 @@ #include #include "libmpeg3.h" #include "mpeg3protos.h" -//#include -#include "../mediaplayerplugininterface.h" +#include // #define OLD_MEDIAPLAYER_API @@ -51,7 +50,7 @@ public: int audioStreams() { return file ? mpeg3_total_astreams( file ) : 0; } int audioChannels( int stream ) { return file ? mpeg3_audio_channels( file, stream ) : 0; } int audioFrequency( int stream ) { return file ? mpeg3_sample_rate( file, stream ) : 0; } - int audioBitsPerSample(int) { return 0;} +/* int audioBitsPerSample(int) { return 0;} */ int audioSamples( int stream ) { return file ? mpeg3_audio_samples( file, stream ) : 0; } bool audioSetSample( long sample, int stream ) { return file ? mpeg3_set_sample( file, sample, stream) == 1 : FALSE; } long audioGetSample( int stream ) { return file ? mpeg3_get_sample( file, stream ) : 0; } @@ -74,15 +73,15 @@ public: /* { if ( file ) { - int frames = mpeg3_video_frames( file, stream ); - if ( frames == 1 ) { - int res = mpeg3_seek_percentage( file, 0.99 ); - printf("res: %i\n", res ); - mpeg3video_seek( file->vtrack[stream]->video ); - frames = mpeg3_get_frame( file, stream ); - mpeg3_seek_percentage( file, 0.0 ); - } - return frames; + int frames = mpeg3_video_frames( file, stream ); + if ( frames == 1 ) { + int res = mpeg3_seek_percentage( file, 0.99 ); + printf("res: %i\n", res ); + mpeg3video_seek( file->vtrack[stream]->video ); + frames = mpeg3_get_frame( file, stream ); + mpeg3_seek_percentage( file, 0.0 ); + } + return frames; } return 0; } -- cgit v0.9.0.2