00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __PLAYER_H
00021 #define __PLAYER_H
00022
00023 #define __GEDDEI_BUILD
00024
00025 #include "processor.h"
00026 using namespace Geddei;
00027
00028 #ifdef HAVE_SNDFILE
00029 #include <sndfile.h>
00030 #endif
00031
00032 class HardBob;
00033
00037 class Player: public Processor
00038 {
00039 friend class HardBob;
00040
00041 QString thePath;
00042 #ifdef HAVE_SNDFILE
00043 SNDFILE *theFile;
00044 #endif
00045 uint theChannels, theRate, thePosition, theLength, theBlockSize;
00046
00047 virtual void paintProcessor(QPainter &p);
00048 virtual void processor();
00049 virtual void processorStopped();
00050 virtual const bool verifyAndSpecifyTypes(const SignalTypeRefs &inTypes, SignalTypeRefs &outTypes);
00051 virtual void initFromProperties(const Properties &);
00052 virtual void specifyOutputSpace(QValueVector<uint> &sizes);
00053
00054 public:
00055 Player(const QString &path);
00056 };
00057
00058 #endif