mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-06-03 17:11:34 +02:00
make it work on unix, mac, and windows
This commit is contained in:
parent
46c45da842
commit
148cde30a0
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ qint64 AudioRingBuffer::writeData(const char* data, qint64 maxSize) {
|
||||||
// make sure we have enough bytes left for this to be the right amount of audio
|
// make sure we have enough bytes left for this to be the right amount of audio
|
||||||
// otherwise we should not copy that data, and leave the buffer pointers where they are
|
// otherwise we should not copy that data, and leave the buffer pointers where they are
|
||||||
|
|
||||||
int samplesToCopy = std::min(maxSize / sizeof(int16_t), (qint64) _sampleCapacity);
|
int samplesToCopy = std::min((quint64)(maxSize / sizeof(int16_t)), (quint64)_sampleCapacity);
|
||||||
|
|
||||||
std::less<int16_t*> less;
|
std::less<int16_t*> less;
|
||||||
std::less_equal<int16_t*> lessEqual;
|
std::less_equal<int16_t*> lessEqual;
|
||||||
|
|
Loading…
Reference in a new issue