Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
4.7.0
-
None
-
NOKIA QTSDK on WIN XP
Description
there is an error in the readData function implementation
at line 138
memcpy(data, m_buffer.constData() + m_pos, chunk);
should be
memcpy(data+total, m_buffer.constData() + m_pos, chunk);
in fact in the while loop it does not advance the pointer to data so that it override the previous sound samples causing rumours in the ouput sound
i started my code from example and i discover it while debugging an audible click/rumours in the sound .
As i fixed it , sound plays clean
just to be sure where in the code ,this is the function
qint64 Generator::readData(char *data, qint64 len)
{
qint64 total = 0;
while (len - total)
return total;
}