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

Combining multiple streams #10

Open
LadaBr opened this issue Feb 27, 2021 · 0 comments
Open

Combining multiple streams #10

LadaBr opened this issue Feb 27, 2021 · 0 comments

Comments

@LadaBr
Copy link

LadaBr commented Feb 27, 2021

Hello, I really like your player. I am trying to create VOIP in JS using Web Audio Worklet and socket.io. I managed to make it work smoothly in one-to-many (input-outputs) scenario but when there are multiple PCM streams broadcasted simultaneously into one pcm-player feed then it slowly becomes broken. After a while there is like 1 minute delay and audio is disorted. I send them in default size (Float32Array 128) from worklet to socket and then broadcast it to all connected pcm-player feeds. (Approximately 125 messages per second for each stream)

How would you play multiple raw PCM microphone streams in your pcm-player? Should they be merged together? If so then how? Or you can just feed them into the player all at the same time?

Thanks a lot for help!

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

1 participant