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

Request for multiple contexts with different sample rates #251

Open
py60800 opened this issue Dec 5, 2024 · 3 comments
Open

Request for multiple contexts with different sample rates #251

py60800 opened this issue Dec 5, 2024 · 3 comments

Comments

@py60800
Copy link

py60800 commented Dec 5, 2024

I'm writing an application that handles MP3 files with various sample rates (44100 & 48000).
It would be fine to be able to create several contexts (at least one for each sample rate).
Note that I have patched the context.go file to allow multiple contexts. It works fine for me (Linux/Alsa) but I'd like to port my application to Windows.

@hajimehoshi
Copy link
Member

Interesting. Would it be possible to port this to every platform?

@hajimehoshi hajimehoshi changed the title Request for multiple contexts Request for multiple contexts with different sample rates Dec 5, 2024
@hajimehoshi
Copy link
Member

Another concern is that this would require closing a context, but I'm not 100% sure

@py60800
Copy link
Author

py60800 commented Dec 7, 2024

As I do not intend to play two mp3 files at the same time, closing a context before opening a new one would be OK.

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