From 47d4081c949dffc17551ca225e65a00abe1b2614 Mon Sep 17 00:00:00 2001 From: Kwangsoo Yeo Date: Thu, 23 Nov 2023 09:49:53 -0800 Subject: [PATCH] update test --- binding/react-native/test-app/LeopardTestApp/Tests.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/binding/react-native/test-app/LeopardTestApp/Tests.ts b/binding/react-native/test-app/LeopardTestApp/Tests.ts index 4c62668c..bc024dec 100644 --- a/binding/react-native/test-app/LeopardTestApp/Tests.ts +++ b/binding/react-native/test-app/LeopardTestApp/Tests.ts @@ -150,7 +150,7 @@ async function getPcmFromFile( } const pcm: number[] = []; - for (let i = headerOffset; i < fileBytes.length; i += 2) { + for (let i = (headerOffset / Int16Array.BYTES_PER_ELEMENT); i < fileBytes.length; i += 2) { pcm.push(dataView.getInt16(i, true)); }