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 pitch and speed parameters to _SNDPLAYCOPY #589

Open
Bhsdfa opened this issue Dec 14, 2024 · 0 comments
Open

Add pitch and speed parameters to _SNDPLAYCOPY #589

Bhsdfa opened this issue Dec 14, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Bhsdfa
Copy link

Bhsdfa commented Dec 14, 2024

New parameters to _SNDPLAYCOPY, the parameters being optional for pitch and speed, so it doesn't break older existing code.

It would look something like this:
_SNDPLAYCOPY [Sound] [, Volume!] [, x!] [, y!] [, z!] [, Pitch!] [, Speed!]
In use:
_SNDPLAYCOPY MenuSong&, 1, 0, 0, 0, 2, 2

SPEED and PITCH should be a value from -32 to 32, 32 being 32 times faster/higher pitch than the normal.

In addition to that, would be nice to be able to change the PITCH and SPEED while the audio is playing, would be really nice for transitions and effects.
_SNDPITCH and _SNDSPEED should be added for that, it would work just like _SNDVOL but for PITCH and SPEED

@Bhsdfa Bhsdfa added the enhancement New feature or request label Dec 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant