 |
 |
|
Qtella is a free product. If you want to support
the development, you can make a donation using PayPal. The money
is used to buy new hardware and to spent more time in
developing.
|
|
 |
 |
powered by
Last update:
Sun Apr 4 09:21:30 PDT 2004
webmaster
|
Audio File Information
In 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
|
|