1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-09-29 16:55:59 +00:00

Adds explicit conversions to qint64.

This commit is contained in:
Thomas Harte 2020-06-19 23:12:18 -04:00
parent 3cb1072c29
commit 4f9b3259d5

View File

@ -50,12 +50,12 @@ struct AudioBuffer: public QIODevice {
readPointer += nextLength;
}
return dataAvailable;
return qint64(dataAvailable);
}
qint64 bytesAvailable() const override {
std::lock_guard lock(mutex);
return writePointer - readPointer;
return qint64(writePointer - readPointer);
}
// Required to make QIODevice concrete; not used.