powered by |
Audio File InformationIn future versions of Qtella I want to provide information about album, song title, artist, etc of multimedia files. Since there are existing many formats I need some developers who implement the following methods.All classes for audio files must be derived by the following abstract class: (it's just a first draft) //! Abstract class to read information of an audio file. /*! \author Daniel Etzold (detzold at qtella dot net) \version 0.0.1 \date 2002-03-05 */ class AudioFile { public: //! Constructor AudioFile(const std::string& filename) : _filename(filename) { } //! Returns the filename of this audio file. void getFilename(std::string& filename) { filename = _filename; } //! returns true if file is a valid audio file virtual bool valid() = 0; //! songname virtual void getTitle(std::string& title) = 0; //! title of album virtual void getAlbum(std::string& album) = 0; //! artist virtual void getArtist(std::string& artist) = 0; //! bitrate in kbit virtual const int getBitRate() = 0; //! length of audio file in seconds virtual const int getLength() = 0; protected: std::string _filename; }; detzold at qtella dot net Tue Mar 5 13:24:27 PST 2002 |
|