Merge pull request #11951 from hungrymonkey/fix_issue11873
fix issue 11873. AudioStreamSample get_data() seems to be misaligned.
This commit is contained in:
commit
98718ecd63
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue