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

SoundEffect pitch not working on BlazorGL #1727

Open
jordi-z80 opened this issue Jul 14, 2024 · 2 comments
Open

SoundEffect pitch not working on BlazorGL #1727

jordi-z80 opened this issue Jul 14, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@jordi-z80
Copy link

KNI 3.12.9001 , Window10 , BlazorGL

Just that, SoundEffect pitch doesn't seem to be working on BlazorGL. I wrote a simple example :

https://github.com/jordi-z80/SoundTest2/

if (justPressed (Keys.Q)) effect.Play (1.0f, -0.6f, 0); if (justPressed (Keys.W)) effect.Play (1.0f, -0.4f, 0); if (justPressed (Keys.E)) effect.Play (1.0f, -0.2f, 0); if (justPressed (Keys.R)) effect.Play (); if (justPressed (Keys.T)) effect.Play (1.0f, 0.2f, 0); if (justPressed (Keys.Y)) effect.Play (1.0f, 0.4f, 0); if (justPressed (Keys.U)) effect.Play (1.0f, 0.6f, 0);

Pressing keys Q...U produces different sounds on KNI Windows, but not on web.

@nkast nkast added the bug Something isn't working label Jul 15, 2024
@nkast
Copy link

nkast commented Jul 15, 2024

As I remember, when I tried to connect the StereoPannerNode, nothing worked.
GainNode on the other hand which controls the volume, worked as expected.
I haven't worked on it since then.

https://github.com/kniEngine/kni/blob/8cbec78794afb21bfafbf4c53320263574388668/MonoGame.Framework/Audio/Blazor/ConcreteSoundEffectInstance.cs#L45C15-L45C32

@jordi-z80
Copy link
Author

Hi nkast, thanks for the answer.

As you marked it as bug, I'll leave it open for the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants