Merge pull request #11951 from hungrymonkey/fix_issue11873

fix issue 11873.  AudioStreamSample get_data() seems to be misaligned.
This commit is contained in:
Rémi Verschelde 2017-10-11 22:30:13 +02:00 committed by GitHub
commit 98718ecd63

View file

@ -486,7 +486,8 @@ PoolVector<uint8_t> AudioStreamSample::get_data() const {
{
PoolVector<uint8_t>::Write w = pv.write();
copymem(w.ptr(), data, data_bytes);
uint8_t *dataptr = (uint8_t *)data;
copymem(w.ptr(), dataptr + DATA_PAD, data_bytes);
}
}