This is a basic template for adding SoundManager to your page.
This page includes the SM2 script, which starts up on its own as appropriate. By default it will try to start as soon as possible.
The minimal code needed to get SoundManager 2 going is below, with configurable parts:
<!-- include SM2 library -->
<script type="text/javascript" src="/path/to/soundmanager2.js"></script>
<!-- configure it for your use -->
<script type="text/javascript">
soundManager.setup({
url: '/path/to/sm2-flash-files/', // directory where SM2 .SWFs live
/*
* Note that SoundManager will determine and append the appropriate .SWF file to the URL,
* eg. /path/to/sm2-flash-files/soundmanager2.swf automatically.
* You should not put soundmanager2.swf in there yourself.
*/
// Beta-ish HTML5 audio support (force-enabled for iPad), flash-free sound for Safari + Chrome. Enable if you want to try it!
// useHTML5Audio: true,