mirror of
https://github.com/TomHarte/CLK.git
synced 2024-09-30 07:55:01 +00:00
Adds explicit conversions to qint64
.
This commit is contained in:
parent
3cb1072c29
commit
4f9b3259d5
@ -50,12 +50,12 @@ struct AudioBuffer: public QIODevice {
|
|||||||
readPointer += nextLength;
|
readPointer += nextLength;
|
||||||
}
|
}
|
||||||
|
|
||||||
return dataAvailable;
|
return qint64(dataAvailable);
|
||||||
}
|
}
|
||||||
|
|
||||||
qint64 bytesAvailable() const override {
|
qint64 bytesAvailable() const override {
|
||||||
std::lock_guard lock(mutex);
|
std::lock_guard lock(mutex);
|
||||||
return writePointer - readPointer;
|
return qint64(writePointer - readPointer);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Required to make QIODevice concrete; not used.
|
// Required to make QIODevice concrete; not used.
|
||||||
|
Loading…
Reference in New Issue
Block a user