mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-26 03:35:07 +02:00
calculating clip length
This commit is contained in:
parent
6b240dfd5f
commit
c169a7cdd5
1 changed files with 6 additions and 1 deletions
|
@ -27,9 +27,13 @@ public:
|
||||||
|
|
||||||
bool isStereo() const { return _isStereo; }
|
bool isStereo() const { return _isStereo; }
|
||||||
bool isReady() const { return _isReady; }
|
bool isReady() const { return _isReady; }
|
||||||
|
|
||||||
|
|
||||||
const QByteArray& getByteArray() { return _byteArray; }
|
const QByteArray& getByteArray() { return _byteArray; }
|
||||||
|
|
||||||
|
public slots:
|
||||||
|
float getClipLength() const { return _clipLength; }
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void ready();
|
void ready();
|
||||||
|
|
||||||
|
@ -37,6 +41,7 @@ private:
|
||||||
QByteArray _byteArray;
|
QByteArray _byteArray;
|
||||||
bool _isStereo;
|
bool _isStereo;
|
||||||
bool _isReady;
|
bool _isReady;
|
||||||
|
float _clipLength;
|
||||||
|
|
||||||
void downSample(const QByteArray& rawAudioByteArray);
|
void downSample(const QByteArray& rawAudioByteArray);
|
||||||
void interpretAsWav(const QByteArray& inputAudioByteArray, QByteArray& outputAudioByteArray);
|
void interpretAsWav(const QByteArray& inputAudioByteArray, QByteArray& outputAudioByteArray);
|
||||||
|
|
Loading…
Reference in a new issue