2016-10-10 13:29:41 -04:00
|
|
|
#ifndef AUD_FILE_H
|
|
|
|
#define AUD_FILE_H
|
|
|
|
|
2016-10-16 17:04:21 -04:00
|
|
|
#include <QBuffer>
|
2016-10-10 13:29:41 -04:00
|
|
|
#include <QFile>
|
|
|
|
#include <QObject>
|
|
|
|
#include <QString>
|
2016-10-16 17:04:21 -04:00
|
|
|
#include <QTimerEvent>
|
2016-10-10 13:29:41 -04:00
|
|
|
|
|
|
|
class AudFile : public QFile
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
qint64 offset;
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
AudFile(QObject *parent = 0);
|
|
|
|
|
2016-10-16 17:04:21 -04:00
|
|
|
bool openFile(const QString &path);
|
|
|
|
bool seek(qint64 off);
|
|
|
|
qint64 size() const;
|
2016-10-10 13:29:41 -04:00
|
|
|
|
|
|
|
~AudFile();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // AUD_FILE_H
|