Skip to content

playing left and right PCM byte arrays #11

Open
@kboniadi

Description

@kboniadi

Hi, I'm having some trouble passing my PCM arrays into the feed() method. I've initialized the player like so:

let player = new PCMPlayer({
  encoding: "32bitFloat",
  channels: 2,
  sampleRate: 48000,
  flushingTime: 10,
});

The opus decoding library that I'm using(opus stream decoder) decodes my stereo encoded bytes to left and a right PCM arrays. The feed() method only looks like it accepts one array. I did try to manually merge the left and right arrays together before passing the result into feed() but this action adds a huge amount of delay. Is this the only possible way I can go about using your pcm-player with left and right pcm arrays? Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions