OGG sfx with small duration issue (so use wav)

Started by arj0n, Wed 10/03/2021 21:29:15

Previous topic - Next topic

arj0n

I have a gun sfx OGG sound file which has a duration of 180ms.
After importing it as audio>sound it plays correct in the preview pane.

When playing the gun sfx via AudioClip.Play or AudioChannel* AudioClip.Play, only a short click is heard.
When playing a longer sound, for example a BG music track (OGG), all works fine.
After converting the OGG into WAV and importing that into AGS, the WAV version of the gun sfx plays fine via AudioClip.Play and AudioChannel* AudioClip.Play.

So, is there an issue with OGG files that have a certain (too) short duration?

Crimson Wizard

Yes, iirc there is this problem with OGG player in ags. I think someone suggested to add silence in the end, but idk how this will work for a looping sound.

arj0n

Ah, ok.
I've tried to add more silence, but apparently I it was still too short cause the issue was still there.
And as using a quick loop might indeed become a problem, I'll go with the wav version.
Thanx for the answer  :)

nightmarer

Hello, I'll bring this problem again back as it seems it is still happening.

eri0o

Please,

  • tell us the AGS version
  • Give us a download link for the sound file

Rik_Vargard

If you have a sound that has to be looped and that's too short, maybe you could edit in Audacity and make the sound playing two or three times and then loop that new sound?
Also, I make sure that any sound file is at least 1 second long and that works for me.

SMF spam blocked by CleanTalk