Don't add the beginning of the file to the end of the last period
authorKevin Ottens <kevin.ottens.qnx@kdab.com>
Thu, 30 Aug 2012 13:43:13 +0000 (15:43 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 8 Oct 2012 06:37:35 +0000 (08:37 +0200)
commit2f2b31731814ad93e7e6e56d4815ac85135e719c
tree4f5f0a357b49ef8bff21d99340847b5c40dcc987
parent690b4c4978bc050c31d8768578b5d78cbbc6c398
Don't add the beginning of the file to the end of the last period

If we're in the last loop, it is not necessary to provide a full period
on read. Just provide the remaining of the data and hit the end of the
stream by returning less than requested, otherwise we potentially
generate some garbage noise.

Change-Id: I9d3a632ddc0c3289957c9f876d5dbe2999b50ebd
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
src/multimedia/audio/qsoundeffect_qaudio_p.cpp