Skip to content

Commit

Permalink
Fix error playing WAV data from RAM
Browse files Browse the repository at this point in the history
The computation of the number of samples didn't take into account the number of channels
  • Loading branch information
h4yn0nnym0u5e committed Sep 23, 2024
1 parent d37fab1 commit d666ecc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ResamplingReader.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class ResamplingReader {
break;

result = playRaw((TArray*)((char*) array + (36 + infoTagsSize + sizeof wav_data_hdr)),
wav_data_hdr.data_bytes / 2,
wav_data_hdr.data_bytes / hdr.num_channels / 2,
hdr.num_channels);
} while (0);

Expand Down

0 comments on commit d666ecc

Please sign in to comment.