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

Add loop and fade options to pygame.mixer.channel.queue() #3236

Open
OlaKenji opened this issue Nov 24, 2024 · 6 comments
Open

Add loop and fade options to pygame.mixer.channel.queue() #3236

OlaKenji opened this issue Nov 24, 2024 · 6 comments
Labels

Comments

@OlaKenji
Copy link

Currently, the pygame.mixer.Channel.queue() method allows queuing a sound to be played immediately after the current sound finishes. However, it does not support specifying loop or fade options for the queued sound. These options are already available in pygame.mixer.Sound.play() and would significantly enhance the functionality and flexibility of queue().

@OlaKenji OlaKenji changed the title Feature request: Add loop and fade options to pygame.mixer.channel.queue() Add loop and fade options to pygame.mixer.channel.queue() Nov 24, 2024
@AntoineMamou
Copy link
Contributor

Hello @OlaKenji,

I would like to work on this issue if it's possible

@AntoineMamou
Copy link
Contributor

AntoineMamou commented Nov 27, 2024

If I understand well the issue, I should add two methods, one for the loop and one for the fade option for the sound that are in the queue ?

@damusss
Copy link
Member

damusss commented Nov 27, 2024

If I understand well the issue, I should add two methods, one for the loop and one for the fade option for the sound that are in the queue ?

Actually it should not add two methods, but two parameters for the same function aside from the sound being played.

@AntoineMamou
Copy link
Contributor

Yes, i agree with you. The params should be add in chan_queue in mixer.c file ?

@OlaKenji
Copy link
Author

Hi, @AntoineMamou. I am happy that you would like to attempt this. I just wanted to also highlight this issue #3011, in case you happen to come across a solution while digging.

@Starbuck5
Copy link
Member

I thought this was what @bilhox was trying to solve with #3108

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants