-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
static is emitted when freeing an AudioStreamPlayer or resetting its stream property #25087
Comments
okay so i've been fiddling around with this for an hour or so. finally found something that stops it. but i know this can't be a solution it feels too hacky
when i think the "fading out" comment is important here: that fading out helps with the static? godot/scene/audio/audio_player.cpp Line 145 in ce36351
this is about as far my brain goes with c++ 🔮 edit2: might be around here godot/scene/audio/audio_player.cpp Line 94 in b16c309
|
I can't seem to replicate the issue (used your zip file). I presume this has more to do with your audio driver as opposed to Godot's audio API? |
@alexfonseka just curious what OS? i don't think it's my audio driver cause the pausing of the stream works fine with no static. just the abruptly stopping (.stream=null, .stop(), or .queue_free()) causes the static. |
Okay so I get the pop when using the default audio driver but its random. I don't hear the pop at all when using my external DAC. I'm on Win 10. I remember experiencing a similar issue with Love2d engine as well. Starting the audio event paused does seem to fix all of the static noises/pops. |
Since #25974 was just merged the stop() part of the bug should be solved, please confirm and update the issue, thanks! |
Confirmed that
|
#25974 was reverted, but the bug was fixed again for Can you reproduce the bug with I tried myself and it seems fixed, but I don't have very precise hearing and I don't know if the relatively abrupt end of playback is just the playback stopping or actually the "static" mentioned here. From what I hear it |
AudioStreamPlayer2D/3D still clicks in all cases. AudioStreamPlayer still clicks on EDIT: |
Godot version:
ce36351
OS/device including version:
Windows 10, 64-bit. Default High Definition Microsoft Audio Driver (last update 9/7/2018)
Issue description:
When calling
stop()
,queue_free()
, or settingstream = null
on an AudioStreamPlayer, an audible static is heard at the end. this sound can be heard from your left or right ear (it's random).Steps to reproduce:
Minimal reproduction project:
audiostreamstopbug.zip
i'm am not sure if this is only with .ogg files, will test some more. at the moment, i don't think i can replicate this with .wav
The text was updated successfully, but these errors were encountered: