mirror of
https://github.com/tildearrow/furnace.git
synced 2024-12-31 20:11:29 +00:00
what happened with sample loading
This commit is contained in:
parent
4e1c6d78c2
commit
16f497fcf1
1 changed files with 1 additions and 1 deletions
|
@ -5628,7 +5628,7 @@ bool DivEngine::addSampleFromFile(const char* path) {
|
|||
int averaged=0;
|
||||
for (int j=0; j<si.channels; j++) {
|
||||
if (((si.format&SF_FORMAT_SUBMASK)==SF_FORMAT_PCM_U8)) {
|
||||
averaged+=buf[i+j]-0x80;
|
||||
averaged+=buf[i+j];
|
||||
} else {
|
||||
averaged+=buf[i+j];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue