actually my guess is that OpenAL system at a low level is more akin to the the newer Flash 10 audio features. I don’t know how OpenAL works but with Flash 10, audio bytes go to the soundcard via a single Sound object instance in buffers of, say, 8192 bytes at a time. In these circumstances it is not possible to get a totally accurate playback position anyway because Flash only responds to events between each buffer (“onSampleData” aka Event.SAMPLE_DATA). Whilst there is some latency here, re-syncing the graphics/animation on the event has proven to be suitable enough.
the sound.position in Flash that I mentioned previously is from the old simple audio API where you just set event sounds to play. This is not governed by the audio buffering as explained above, so the value would be more accurately readable.
the two are completely different systems, and when and where to use one or the other depends on the type of application needed
As for determining the length of the file, would this matter for “position”? I don’t need to know the overall percentage played I just need to know the time position to relate my animation to
not sure if this helps?
thanks
j [import]uid: 6645 topic_id: 5334 reply_id: 18828[/import]