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

prevent more than one decoder when loading SoundFile from stream #19

Open
rpvelloso opened this issue Feb 22, 2019 · 0 comments
Open

prevent more than one decoder when loading SoundFile from stream #19

rpvelloso opened this issue Feb 22, 2019 · 0 comments

Comments

@rpvelloso
Copy link
Owner

When a soundfile is loaded from a stream, chunk by chunk, it can't be played simultaneously by multiple sound objects (i.e., it can't be shared) because the stream pointer can't be shared (it could be shared using mutex and alike, but we want to avoid this). So a stream soundfile should be allowed to instantiate only one decoder. If sharing is needed then the soundfile should be loaded to memory so it can be played simultaneously by several sound objects (or, if the file is too big, multiples soundfile should be created for the same disk file).

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