Why QAudioInput::bytesReady() always returns 5120 bytes
Unsolved
General and Desktop
-
Hi, I try send voice via UDP. I read data from the microphone. I check if there is available data from the microphone with the bytesReady() function and it turns out that always available data is 5120 bytes. I think it's too much to send in one datagram. I checked with wireshark and skype sends about 100 bytes in one datagram. Is it possible to somehow change the amount of data read by the microphone?
-
@patent said in Why QAudioInput::bytesReady() always returns 5120 bytes:
Is it possible to somehow change the amount of data read by the microphone?
No, you have to split it in smaller chunks by yourself.
And UDP can transfer up to 64k but it should not be bigger than the MTU (~1500 bytes depending on the OS and the network architecture)