0 votes

A .ogg file is loaded in AudioStreamPlayer and the signal "finished()" is not emitt. However, if I download the .wav format, the signal is emitted.
I use the .ogg format precisely because it is lighter than the .wav format.

How to make the signal "finished()" emitted in .ogg format?
Or maybe there is a way to make the .wav format weigh significantly less?

in Engine by (96 points)

1 Answer

+1 vote
Best answer

You have to disable loop in .ogg files. To do this -

1.)select .ogg file : https://imgur.com/w9PvgP8

2.) go to import tab and uncheck loop and press Reimport : https://imgur.com/6F05m0n

Now you will get finished() signal

by (726 points)
selected by
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.

Categories