@artemious3 said in Creating QIODevice with infinite data:
I'd like to know if you can see some problems with this implementation,
On a cursory inspection...
Let's say your audioData buffer size is 1024 bytes, for example, and the user requests a read of 2048 bytes (because your bytesAvailable says that is available). This line:
will try to copy 2048 bytes out of a 1024 byte buffer.
You should also look at the QIODevice::bytesAvailable() docs regarding what this should return.