Sound Effect recycle problem

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
adrywalsh
Prole
Posts: 20
Joined: Fri Feb 26, 2010 7:24 am

Sound Effect recycle problem

Post by adrywalsh »

Forgive me if this question has been posted elsewhere, the search mechanism strictly forbids searching for either of the words "sound" or "audio."
(even in advanced search, looking at only topics).

I am trying to make sound for a bouncing ball, a simple boink.wav is loaded.

boink = love.audio.newSource("boink.wav", "static")
[]
...
love.audio.play(boink)
....

My "boink" boinks on the first two bounces, then every other bounce, then it begins to boink only every so often.
I added a bonk using the same .wav file and doubled my boinks (or added bonks to the boinks) but the problem still eventually occurs.
The .wav file is shorter in duration than about 4 times the duration of boinkless gameplay.

Is there some sort of method to get my boinking back into rhythm?

Windows XP
wave specs:
352kbps
9.92kb
love 0.6.1
while (1)
do LÖVE
User avatar
TechnoCat
Inner party member
Posts: 1611
Joined: Thu Jul 30, 2009 12:31 am
Location: Milwaukee, WI
Contact:

Re: Sound Effect recycle problem

Post by TechnoCat »

Try mp3 or ogg. I believe there are still issues with wav.
User avatar
adrywalsh
Prole
Posts: 20
Joined: Fri Feb 26, 2010 7:24 am

Re: Sound Effect recycle problem

Post by adrywalsh »

ok, thanks!

for now i'm using an array and cycling through them. increased load time, but functional audio...
while (1)
do LÖVE
User avatar
adrywalsh
Prole
Posts: 20
Joined: Fri Feb 26, 2010 7:24 am

Re: Sound Effect recycle problem

Post by adrywalsh »

i cannot get a sound from .ogg (using audacity here).
and when I try .mp3 the sound is clearly playing back in a higher bitrate.
while (1)
do LÖVE
User avatar
adrywalsh
Prole
Posts: 20
Joined: Fri Feb 26, 2010 7:24 am

Re: Sound Effect recycle problem

Post by adrywalsh »

noob solution, slowed down the wav, exported the ogg and got rid of the array...
wavs are broken.
while (1)
do LÖVE
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Majestic-12 [Bot], zorg and 3 guests