-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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
AudioStreamPlayer.get_stream_playback() returns null #76324
Comments
You need to play the AudioStreamPlayer before getting the playback. |
That worked. |
Reopening, because we should have it documented. I don't see it mentioned anywhere. |
I'm also noticing AudioStreamPlayback's methods aren't documented. |
Would you know why I'm able to access methods on AudioStreamPlayback like I'm looking at audio_stream_generator.h in the source code to get an idea of what methods ought to be there. |
Methods beginning with |
How does this work now? I want to play several sound effects. However, |
Godot version
v4.0.2.stable.official [7a0977c]
System information
Windows 10, Forward+
Issue description
Trying to get this project to run in Godot 4. I imported it and ran the conversion process to upgrade to Godot 4.
https://github.com/godotengine/godot-demo-projects/tree/3.5-9e68af3/audio/generator
When I try to run it, I get the error
Attempt to call function 'get_frames_available' in base 'null instance' on a null instance.
Steps to reproduce
Run the attached project. When
$Player.get_stream_playback()
is called, it will return null which causes the rest of the demo to fail.Minimal reproduction project
generator.zip
The text was updated successfully, but these errors were encountered: