This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
0 votes

Hi, someone know what is the most responsive way to play a sound after a collision?

I'm using Area2d to send signal inside an instanced scene, and then playing by AudioStreamPlayer from that scene, but I'm having a slight delay about 0.1 sec.

Is that normal, or Im doing something wrong.
EDIT: maybe there is a way to add sounds to a buffer?

in Engine by (49 points)
edited by

Did you check your sound file? (i.e. with audacity). Perhaps the most part of the delay is inside the sound data.

To combat sound latency inherent to real-time audio engines, you can also find a way to play the sound just before the collision (if it's very likely to happen). You could use a RayCast node to predict this.

Problem is also that the delay is not always the same.
I'm making a percussion app based on collisions so its pretty noticeable

1 Answer

0 votes
Best answer

I used audiostream2d and it sounds much better

by (49 points)
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 Frequently asked questions and 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 [email protected] with your username.