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

Memory leak when creating new SteamAudioPlayer #77

Open
Ryhon0 opened this issue Oct 21, 2024 · 0 comments
Open

Memory leak when creating new SteamAudioPlayer #77

Ryhon0 opened this issue Oct 21, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Ryhon0
Copy link

Ryhon0 commented Oct 21, 2024

Are you using the provided fork of Godot?
Yes

Godot-steam-audio version
0.2.2

Steam-Audio version
Not sure. Whichever is in the 0.2.2 GH release

Operating System
Arch Linux

Describe the bug
When creating a new SteamAudioPlayer, a memory leak occurs, even if the player is freed

To Reproduce
Create a new SteamAudioPlayer and free it. Observe as the memory usage goes up.

Expected behavior
SteamAudioPlayer frees memory when the node is freed.

Example project, code snippet, or screenshots

extends Node

@export var stream : AudioStream

func _process(_delta):
	play()

func play():
	var player = SteamAudioPlayer.new()
	player.stream = stream
	player.volume_db = -200;
	add_child(player)
	player.play()
	player.finished.connect(player.queue_free)
@Ryhon0 Ryhon0 changed the title Memory leak when creating new Memory leak when creating new SteamAudioPlayer Oct 21, 2024
@stechyo stechyo added the bug Something isn't working label Oct 25, 2024
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