Making a soundboard....some odd ogg issues
Sparkyidr
Member Posts: 2,033
hey
Those of you that have made soundboard type apps in GS.
I'm having a bit of an issue.
I assign a .ogg to a button, and it plays all fine..
but....
When I kind of hammer the button, or just even press it a lot in pretty quick succession, the playback sounds a bit odd, sort of like it's playing the sample more than once before it runs to the end (like a little roll before it plays the full sample)
if that makes sense
Anyone else had the same issue? and if so how (if at all) did you work around it? It's kind of anoying.
it's almost as if it's receiving more than a single touch...when you slow down your presses and be more deliberate about it, it sounds fine.
this is on the phone by the way...it seems fine in the gs preview.
Those of you that have made soundboard type apps in GS.
I'm having a bit of an issue.
I assign a .ogg to a button, and it plays all fine..
but....
When I kind of hammer the button, or just even press it a lot in pretty quick succession, the playback sounds a bit odd, sort of like it's playing the sample more than once before it runs to the end (like a little roll before it plays the full sample)
if that makes sense
Anyone else had the same issue? and if so how (if at all) did you work around it? It's kind of anoying.
it's almost as if it's receiving more than a single touch...when you slow down your presses and be more deliberate about it, it sounds fine.
this is on the phone by the way...it seems fine in the gs preview.
Comments
Failing that, have you got the sound set to Run to completion?
yeah, already got run to completion on.
I'm thinking it might have more to do with the sounds i am playing rather than anything...think the bass frequencies might be causing the clicks as the sound takes over on the release tail to play again... hmmmmmmm (They are bassy sounds)
If you want to only allow one sound at a time to play, make "AlreadyPlaying" a single game level (not actor level) attribute and have all the icon buttons reference it.
To get pristine playback of sounds, there are quite a number of considerations. We had to build our own sound engine for CHORDiCA just to eliminate all 'clicking' sounds due to various playback scenarios. There are still some music instrument apps that are sloppy about such things in the app store.
The best bet is to let the sound file run to completion before interrupting it again.
Somewhat related to this topic is the process of creating seamless audio loops without clicks and pops. Just do some searching on the net to see advice on that. Here's one:
http://forum.audacityteam.org/viewtopic.php?f=13&t=2820