Removed extra division by format channels causing sounds to get halved.
This commit is contained in:
parent
edc9097bc1
commit
e630591aea
1 changed files with 2 additions and 2 deletions
|
@ -409,12 +409,12 @@ Error ResourceImporterWAV::import(const String &p_source_file, const String &p_s
|
|||
float amp = Math::abs(ampChannelSum / (float)format_channels);
|
||||
|
||||
if (!found && amp > limit) {
|
||||
first = i / format_channels;
|
||||
first = i;
|
||||
found = true;
|
||||
}
|
||||
|
||||
if (found && amp > limit) {
|
||||
last = i / format_channels;
|
||||
last = i;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue