Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 26 lines (18 sloc) 0.76 kb
2c43afcc »
2011-09-17 initial version
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>HTML5 Audio</title>
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
6 </head>
7
8 <body>
9
10 <h1>Experimenting with HTML5 Audio</h1>
11
12 <input type='button' value='POOL' onclick="pool.play()" />
13 <input type='button' value='SINGLE' onclick="single.play()" />
14
15 <script src="audio-fx.js"></script>
16 <script>
17
0ad464a8 »
2011-09-18 added m4a (aac) support
18 var music = AudioFX('sounds/music', { formats: ['ogg','mp3','m4a'], volume: 0.1, loop: true, autoplay: true });
19 var pool = AudioFX('sounds/pool', { formats: ['ogg','mp3','m4a'], volume: 0.1, pool: 20 });
20 var single = AudioFX('sounds/single', { formats: ['ogg','mp3','m4a'], volume: 0.1 });
2c43afcc »
2011-09-17 initial version
21
22 </script>
23
24 </body>
25 </html>
Something went wrong with that request. Please try again.