What exactly is position in Sound.extract() ?

Does anyone know for sure? Today I have been working on simple sound queue using Sound.extract() with SampleDataEvent to avoid infamous SOUND_COMPLETE accuracy problems. For some (not really valid) reason I tried to manually track position passed to Sound.extract(), and I discovered that it is not actually measured in samples, as documentation claims. Actual units depend on sound compression method, for example in this demo below for raw 22kHz sounds I had to specify position = samples / 2:

The same demo with 16 kbps MP3 compression would have to use samples / 4. Intriguing…

0 Responses to “What exactly is position in Sound.extract() ?”



  1. Leave a Comment

Ask a Question

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s




Old stuff

December 2009
M T W T F S S
« Nov   Jan »
 123456
78910111213
14151617181920
21222324252627
28293031  

Oh, btw…


%d bloggers like this: