Commit e636540
committed
wavcodec: fix WAV file loading
Read samples from “first sample byte” to “first sample byte + size”
instead of reading from “first sample byte” to “first header byte + size”.
It means we now:
- don't wrongfully truncate the end of the file from the size of the header,
- can load files with less samples than the header size.1 parent fae6ddd commit e636540
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
| 117 | + | |
| 118 | + | |
118 | 119 | | |
119 | 120 | | |
120 | 121 | | |
| |||
0 commit comments