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

Possible to specify different backends? #4

Open
joereynolds opened this issue Jan 9, 2025 · 3 comments
Open

Possible to specify different backends? #4

joereynolds opened this issue Jan 9, 2025 · 3 comments

Comments

@joereynolds
Copy link

joereynolds commented Jan 9, 2025

Currently it's tied-in to PyAudio which is fine.
I'm using it with Pygame though and I don't really need the extra dependency of pyaudio just to play audio when Pygame can do that too

Thoughts?

Note to self to read up on Mix_SetPostMix
https://wiki.libsdl.org/SDL2_mixer/Mix_SetPostMix
https://wiki.libsdl.org/SDL2_mixer/Mix_HookMusic
and
pygame-community/pygame-ce#3289

@nwhitehead
Copy link
Owner

Yeah, I think pyaudio should be some sort of "optional dependency" or something like that. I'm not an expert in python packaging but I'll see what I can figure out.

Here are the backends I'm thinking about:

  • pyaudio
  • pygame
  • sounddevice
  • miniaudio
  • tinyaudio

@joereynolds Any thoughts about priorities of these as backends?

@joereynolds
Copy link
Author

No priorities from me. I've heard good things about sounddevice and obviously I'd favour pygame as the first choice because... I'm using it. I'd go with what seems to be most popular and work from there :)

@LeWolfYT
Copy link

Mix_HookMusic has potential to be used for a new backend, since it allows direct access to the mixer stream and could be used to play audio.

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