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

PCM data as non-interleaved IEEE754 32-bit linear PCM with a nominal range between -1 and +1 #52

Open
ouhouhsami opened this issue Apr 15, 2015 · 3 comments

Comments

@ouhouhsami
Copy link

Hi,

Using node-lame, I'd like to be able to get PCM data as non-interleaved IEEE754 32-bit linear PCM with a nominal range between -1 and +1, (in other words 32bits floating point buffer, with each samples between -1.0 and 1.0 - the same used in Web Audio API AudioBuffer).

Is there an easy way to have this representation from the decoder ?

Regards

@mdluo
Copy link

mdluo commented Jan 2, 2018

A workaround is to use pcm-util to convert the PCM buffer from s16 to f32

@mdluo
Copy link

mdluo commented Jan 4, 2018

@ouhouhsami

I've forked and implemented setting output format on the decoder:

https://github.com/mdluo/node-addon-mpg123

I will soon submit a PR after some real world testing. See: #86

@LinusU
Copy link
Collaborator

LinusU commented Jan 4, 2018

PR much welcome 👍

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

3 participants