Skip to content

Commit d3ced04

Browse files
committed
runfix: audio file previews don't match on sender and receiver side
1 parent 22aef7f commit d3ced04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/script/cryptography/CryptographyMapper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ export class CryptographyMapper {
361361
_mapAssetMetaData(original: Asset.IOriginal): MappedAssetMetaData | undefined {
362362
const audioData = original.audio;
363363
if (audioData) {
364-
const loudnessArray = audioData.normalizedLoudness ? audioData.normalizedLoudness.buffer : new ArrayBuffer(0);
364+
const loudnessArray = audioData.normalizedLoudness || new ArrayBuffer(0);
365365
const durationInSeconds = audioData.durationInMillis
366366
? Number(audioData.durationInMillis) / TIME_IN_MILLIS.SECOND
367367
: 0;

0 commit comments

Comments
 (0)