On 02 Dec 2008, at 22:04, Bill Walton wrote:
> Thanks. I found that a bit after my initial plea and grabbed
> sound.js. I'm
> having a really wierd problem with it though. I call
> Sound.play(good_sound)
> or Sound.play(bad_sound) depending on whether or not an item is found.
> First time it works correctly, playing the correct sound. Second
> time, it
> plays the last sound, then the correct sound. Works that way from
> then on.
> I'm logging the calls to Sound.play and it's only getting called
> once per
> request/response. But the sound's getting played twice. I've
> scratched my
> head raw. Any idea what I might be doing wrong?
You do add the {replace: true} option right?
if (!(typeof Sound == 'undefined')) {
Sound.play('/sounds/'+somestring+'.mp3', {replace: true});
}
Best regards
Peter De Berdt
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---