You are probably best off finding some code that reads the file headers
from an MP3 file and do this manually as the Sound API's are not upto this.
Not quite what you want, but here is a starter for 10 that reads ID3 tags:
http://blog.benstucki.net/?id=24
ben gomez farrell wrote:
OK, I totally don't mean to rehash the debate on the sound player bug
- but like a week after you all had that conversation, I'm actually
running into something that's related.
My problem is using Sound.play(), and passing in the milliseconds. As
you might be aware, the milliseconds is only accurate if you use
44.1khz sound. But, fortunately, it's a simple equation to run on
your time to get the time parameter with the desired effect.
So now, as long as I know the sampling rate, I can pause and play to
my heart's content.
I wanted to take it one step further though.....is there any way to
get the sampling rate through code? I imagine if you got the
bytestotal and the length of the sound it would related, but that
might be thrown off by the fact that it was mono or stereo.
Has anybody come up with a good way of determining this?
thanks!
ben
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
--
Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders