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

Godot does not repeat sound playback correctly. #43935

Closed
Torguen opened this issue Nov 28, 2020 · 2 comments
Closed

Godot does not repeat sound playback correctly. #43935

Torguen opened this issue Nov 28, 2020 · 2 comments

Comments

@Torguen
Copy link

Torguen commented Nov 28, 2020

Godot version:

3.2.4 beta 3 mono

OS/device including version:

win10 64

Issue description:

I need to play a sound (my project is at 24 fps) in a loop but I should not use the import option "loop" for X reasons.
But Godot cannot do this, Godot does not do a perfect repetition because there are always small silences between one playback and the next, even if you use signals!
...
Don't ask the question "Why don't you use the loop option when import? This will fix it."
...
Why do I need this?
I am trying to play music imitating the NES console, I have the patterns in separate audio files.
After one pattern, another is played, there cannot be a silence after a pattern because it will break the rhythm of the song.
Some songs have an intro that is never repeated in the song, after the intro the song starts but Godot doesn't make a perfect playback when a playback ends, so the result is not satisfactory.

Steps to reproduce:
Import a sound and try to loop it without using the "loop" option when importing the file ... you won't be able to.
Looping correctly can only be achieved if you use the "loop" option when importing the sound.

Minimal reproduction project:

testFamiStudio.zip
Captura2

@Calinou
Copy link
Member

Calinou commented Nov 28, 2020

Duplicate of #32382.

Why do I need this?
I am trying to play music imitating the NES console, I have the patterns in separate audio files.
After one pattern, another is played, there cannot be a silence after a pattern because it will break the rhythm of the song.
Some songs have an intro that is never repeated in the song, after the intro the song starts but Godot doesn't make a perfect playback when a playback ends, so the result is not satisfactory.

I think you'll need a C++ module to replicate some kind of tracker music/soundfont functionality…

@Torguen
Copy link
Author

Torguen commented Nov 28, 2020

Well if you have closed it then you should be safe and not make an assumption.
So if you are sure that there is no way to get this done without "digging deeper" then ok.

I need to load multiple audio files into the buffer so that they play one after the other without interruptions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants