mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-01-11 10:39:56 -05:00
Merge pull request #2197 from ericrosenbaum/bugfix/update-sound-duration
Update sound duration
This commit is contained in:
commit
f74bf88ce3
1 changed files with 2 additions and 0 deletions
|
@ -795,6 +795,8 @@ class VirtualMachine extends EventEmitter {
|
|||
sound.assetId = sound.asset.assetId;
|
||||
sound.dataFormat = storage.DataFormat.WAV;
|
||||
sound.md5 = `${sound.assetId}.${sound.dataFormat}`;
|
||||
sound.sampleCount = newBuffer.length;
|
||||
sound.rate = newBuffer.sampleRate;
|
||||
}
|
||||
// If soundEncoding is null, it's because gui had a problem
|
||||
// encoding the updated sound. We don't want to store anything in this
|
||||
|
|
Loading…
Reference in a new issue