So, my project was going so well, but I've hit another problem: My audio isn't working :O
This issue is a bit of a strange one. I've looked into some audio libraries, but none can help. The problem is: When I collect a food, it only plays that sound once every 5 seconds or so; there is an unwanted delay. There is NO whitespace at the end. Trust me So, download the code below and you can have a listen. It's strange.
Game: https://www.dropbox.com/s/43edi26334sb9lr/Game.love
Audio Issue :I
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Audio Issue :I
"In those quiet moments, you come into my mind" - Liam Reilly
- slime
- Solid Snayke
- Posts: 3170
- Joined: Mon Aug 23, 2010 6:45 am
- Location: Nova Scotia, Canada
- Contact:
Re: Audio Issue :I
See the note about WAV files in love.audio.newSource:
The WAV decoder is buggy and as a result may append seconds of silence to loaded sounds. You should convert sounds files to Ogg Vorbis or another supported format.
Re: Audio Issue :I
I add collectCoinBgm:rewind() before the collectCoinBgm:play() and it's work fine.
Re: Audio Issue :I
Also, don't forget that once you start a Source, it will play until the end. Calling love.audio.play or [wiki]Source:play[/wiki] on the Source again during that time has no effect.
Shallow indentations.
Re: Audio Issue :I
Thanks everyone! The code works fine now that I converted everything to an OGG!
"In those quiet moments, you come into my mind" - Liam Reilly
Who is online
Users browsing this forum: No registered users and 13 guests