WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Audio in Opera  (Read 2258 times)

Offline bobert3316

  • Newbie
  • *
  • Posts: 11
Audio in Opera
« on: March 21, 2012, 12:10:44 PM »
I posed this question in Opera's forums to no avail.  Hopefully someone here can help me. 
 
In several Opera versions (11.01, 11.52, and 12 pre-alpha) of Opera running on Tiny Core Linux (both versions 3.8 and 4.3), I can't get Opera to play a .wav file from the browser, but I can get it to play the same .wav file from Preferences:Advanced:Notifications if I set it as, say, the "Follow link" sound file and click Test, or follow a link in the browser. I cannot, however, play the same file using any of several mechanisms via JavaScript, or clicking a direct link to the file, or even typing its URL into the address bar, pointing at either an HTTP server or the local filesystem. All of these mechanisms play the same .wav file in Opera on Windows, and in Chrome on Tiny Core Linux.

The first, obvious question is, does Opera actually use a different mechanism to play sounds generated in HTML versus those generated by the UI (via the Preferences)? What could possibly let the sound play one way but not the other? If it helps, pointing the browser at html5test.com reports that the audio tag is supported by Opera on both Windows and Linux, but on Linux, none of the audio codecs show up as supported, while on Windows, several, including PCM, show support.

Other info - when I reference the file via HTTP, its type shows up as audio/x-wav, and in Opera's preferences, under Advanced:Downloads, this type is set to "Open with Opera".  If I set this instead to play using ossplay, the audio will play, but there are other weird consequences to doing it this way, so it's not the ideal approach.

Clearly TC can play the audio, and Opera can play the audio if it wants to, but something is gumming up the works when I try to play it from a web page.  Has anybody else experienced a problem like this?  Any ideas for things I can try?  If you can make Opera play a .wav file from the URL bar in your TC install, can you please tell me a bit about how you have it set up?

Thanks!

Offline bobert3316

  • Newbie
  • *
  • Posts: 11
Re: Audio in Opera
« Reply #1 on: March 22, 2012, 03:49:07 PM »
I've found that Opera 10.10 works fine, but Opera 11.52, running right beside it, won't play the audio.  This is also the case in VirtualBox, so it doesn't seem to be my hardware.