kopia lustrzana https://gitlab.com/eliggett/wfview
Update audiohandler.cpp
rodzic
86237afd8b
commit
4f5e4addb6
|
@ -401,7 +401,7 @@ void audioHandler::getNextAudioChunk(QByteArray& ret)
|
|||
audioPacket livePacket;
|
||||
livePacket.sent = 0;
|
||||
// Don't start sending until we have at least 1/2 of setup.latency of audio buffered
|
||||
if (audioDevice != Q_NULLPTR && audioDevice->bytesAvailable() > format.bytesForDuration(setup.latency)) {
|
||||
if (audioInput != Q_NULLPTR && audioDevice != Q_NULLPTR && audioInput->bytesReady() > format.bytesForDuration(setup.latency)) {
|
||||
livePacket.data = audioDevice->read(format.bytesForDuration(20000)); // 20000uS is 20ms in NATIVE format.
|
||||
if (livePacket.data.length() > 0)
|
||||
{
|
||||
|
|
Ładowanie…
Reference in New Issue