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
Fixed volume of emulated wii mote speakers not being native. #8927
Conversation
|
I don't see how the "it implied that the loudness of a wiimote speaker is equal to the loudness of your device speakers" part makes sense. The constant power pan law is about making sure that the audio doesn't change in perceived loudness as you change the panning, not about making sure that the audio is the same in perceived loudness as the audio of a real Wii Remote speaker. I think it's best to keep using the constant power pan law if we allow panning, since it does fix a problem. But I do also think that the utility of letting the user pan the Wii Remote speaker audio is limited. |
|
Yes I understand that the pan law makes sense within panning, but it doesn't make sense if you don't want panning. |
|
@JosJuice I discussed with multiple people yesterday, and they actually had one good use case for panning. For example, if 2 people were playing multplayer with 2 normal controllers on Dolphin, they could each pan their wii mote speaker to the PC speaker on their side, so the direction of the wii mote sounds would be clear. Panning still works fine without the pan law, so I don't think taking out the pan law is a problem. If a user wants panning, they mainly want it to have the sounds more or less loud on one side, and they can still achieve that, there is no need to adjust the perceived loudness towards a random direction which we can't know is right. |
|
The "pan law" is fun because it's cool to be mathematically correct but I think I might agree that it's not practical here. That being said your math looks a bit wrong. |
|
My CTRL key broke and CTRL+S doesn't work anymore, so I missed the last save where I fixed the math left/right |
No, clamp is very much not needed, but I put it there to be safe in case someone passed a pan over 1 or below -1, in that case the volume result would loop around. |
|
If others agree on not wanting to keep the pan law, you don't have to treat my comment as a blocker. |
Thinking about it, when emulating 2 wii mote simultaneously, they won't be able able to play sound at the same time, it would cripple both sounds as it would play a few samples from the first, then a few samples from the second and so on. I don't see how it could work with the current code. Which make my above comment "wrong", so we don't really have any reason to keep the padding. Unless I add support to play 2 wii mote sounds simultaneously, which I'm looking to do. |
|
Worth mentioning here: if DPLII is enabled and panning is 0, the wii mote samples will only come out of the central channel because samples that are identical between the left and right channel are rerouted to the central speaker. |
1783463
to
d841d07
Compare
As in the comment, the panning was denaturalizing the volume (when the panning was at 0). Unless users actually want to use panning, their wii mote volume should not be reduced, it should come out at the same volume the samples were. If users want to reduce the volume of the wii mote speakers, they can do so from the wii home menu. I opted for this instead of adding another setting "Enable Panning" as it would have been confusing, and the changes in the panning formula are unlikely to have any negative effect, as it still works.
d841d07
to
cf8b527
Compare
As in the code comment, the panning was denaturalizing the volume (when panning was set to 0).
Unless users actually want to use panning, their wii mote volume should not be reduced, it should come out at the same volume the samples were, without using the "Constant Power Pan Law" as we can't assume the original wii mote speakers loadness is comparable to the loudness of the audio device you are currently using (in fact, it's likely to be lower).
If users want to reduce the volume of the wii mote speakers, they can do so from the wii home menu.
I opted for this instead of adding another setting "Enable Panning" as it would have been confusing, and the changes in the panning formula are unlikely to have any negative effect, as it still works.