> I see in the manual that WAV files are recommended, but I'm wondering if I can add an OGG file and an AAC file instead. My files would be:
>
> bang.ogg
> bang.m4a
>
> Note that .m4a is an AAC file.
>
> If I add these two and keep the same filename but with the appropriate extension, will everything be cool?
>
> I just tested a simple game that plays a sound with both files uploaded, and it worked in Firefox, IE9, Safari, Chrome, and Opera.
>
> This is fun. I like playing with browsers and audio formats!
Further testing shows that Chrome not only does not play the sounds, it freezes when a collision happens. All the other browsers work just fine, even Safari. I am not running this on a server and Chrome works fine with I run the project from within Construct. I guess I need to get that Opera Unite server running on my network. I ran into the sample problem when I was writing HTML5 Web Worker code.
Is Construct 2 using Web Workers? I can't see why Canvas would not run on a client.
I finally set up a server and Chrome works just fine on a web server.
Everyone may already know this, but Opera browser has a free web server built in. You just have to install Opera and then set up Opera Unite. This will create a password protected server on your network. I put this on an old netbook running the Windows 8 Developer Preview. Opera seems to use a lot of resources but maybe all servers do, and this is a low-spec old Acer notebook with 1GB of memory and a puny Atom processor.
I'm more of a client guy, but I think it is cool that Opera gives you a server that can server pages, files, and stream media. As well as a bookmarks and notes across all instances, a blog, photo gallery, and probably all kinds of other stuff. I especially like the way I can sync bookmarks with my Android phones! And so far, everything from Construct works on Opera also.
As you can guess, I'm a browser nut, and always have the following on my machines for testing: Chrome, IE, Firefox, Safari, Opera, Iron, Songbird, Maxthon, and SeaMonkey. 9 browsers, that's not too many. <img src="smileys/smiley17.gif" border="0" align="middle" /> I live in the browser world, which is one of the reasons why I'm so gung ho on HTML5 and Construct.
So no problems with Chrome and OGG/AAC for me.