Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ArrayBuffer length minus the byteOffset is not a multiple of the element size #65

Open
Ferin79 opened this issue Aug 4, 2021 · 1 comment

Comments

@Ferin79
Copy link

Ferin79 commented Aug 4, 2021

I'm getting this error here both on iOS and Android.

import { encode, decode } from "base64-arraybuffer";
import toWav from "audiobuffer-to-wav";
import util from "audio-buffer-utils";


....
 const fileData = await FileSystem.readAsStringAsync(data.uri, {
            encoding: FileSystem.EncodingType.Base64,
          });
const decodeData = decode(fileData);
const arrayBufferTrim = decodeData;
const audioBufferTrim = createBuffer(
            arrayBufferTrim,
            "int32 le mono 44100"
          );

@ashishAmz
Copy link

getting same message while trimming in the console,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants