mirror of
https://github.com/switchbrew/switch-examples.git
synced 2025-08-06 16:39:22 +02:00
audio/hwopus-decoder: fix offset for pointer to wavebuf start
This commit is contained in:
parent
5e36dc2902
commit
1687bc5b02
@ -206,7 +206,7 @@ int main(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (wavei >= 0) {
|
if (wavei >= 0) {
|
||||||
curbuf = (opus_int16*)(mempool_ptr + wavebuf[wavei].start_sample_offset);
|
curbuf = (opus_int16*)(mempool_ptr + wavebuf[wavei].start_sample_offset * sizeof(opus_int16));
|
||||||
|
|
||||||
opret = op_read(of, tmpdata_ptr, max_samples * num_channels, NULL);//The buffer used here has to be seperate from mempool_ptr.
|
opret = op_read(of, tmpdata_ptr, max_samples * num_channels, NULL);//The buffer used here has to be seperate from mempool_ptr.
|
||||||
if (opret < 0)
|
if (opret < 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user