-
Notifications
You must be signed in to change notification settings - Fork 50
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
Volume support #17
Comments
Actually one should be able to wire the internal ScriptProcessorNode to any WebAudio sink. So you could use a GainNode to control volume. I'll think about ways of doing so. Currently the internal ScriptProcessor Node is directly wired to the AudioDestination (speakers) with no nice way to intercept between. However you can try the hackish approach:
You will have to do the rewiring after each call to |
Cool that works great. Thanks. Maybe make it part of the API though so it would be more easily accessible and hide the implementation details. |
Note that you can also set the gain directly in libopenmpt via openmpt::module::set_render_param. |
@deskjet I once merged several input source to one output just by copying and adding the buffer to the output processor. Maybe you can use this method to maintain one |
How exactly? I'm struggling to change the volume currently using any means |
@KingPossum Lines 146 to 147 in 05349a0
Try |
Thank you so much for the quick and concise reply! I hope you can forgive my ignorance on the topic, I'm new to JS and website creation in general. Here's the current syntax I'm attempting to use, and it's still having no effect. I'm sure I'm just not using it correctly. libopenmpt._openmpt_module_set_render_param(1, -600); |
It would be helpful to be able to change the volume of the music being played.
The text was updated successfully, but these errors were encountered: