How to return duration soundmanager2
<p>I'm using.</p>

<pre><code>function item_duration(link,name) {
    soundManager.createSound({
        id: ''+name+'',
        url: ''+link+'',
        volume: 100,
        autoLoad: true,
        onload: function(){ 
            if (this.readyState == 3) {
                return this.duration;
            }
        }
    });
    //sound_duration.load();
    //sound_duration.stop();
   // soundManager.unload(''+name+'');
}
</code></pre>

<p>But it is not returning the duration it gives me 0, i tried to alert the duration and there is not 0 the alert shows different, but it takes time before the alert appear.I don't thing that is the problem because i have statement .</p>
