0
0

Hi,
I am using getPosition() to track the position of (potentially) multiple streams and synchronise. However, I am seeing behaviour in the result of getPosition() that looks like it is returning the position on some block boundary.

Is there anyway that I can get the actual (linear) position of the playhead?

Thanks

  • You must to post comments
0
0

fmod’s software mixer mixes in blocks, so it is not possible to return a value that increments 1 sample at a time, without using an OS time function to interpolate between. We could do that but it would probably not be satisfactory and wouldnt be perfectly smooth, you could do something like that yourself possibly.

  • You must to post comments
0
0

That’s what I thought.
I am already doing something similar in that I am averaging over a nunmber of readings to try to reduce the steps. The problem with me doing the interpolation is that I am getting the position of the audio on video frame boundaries and this time interval is aliasing with the ‘chunking’ of the audio, hence giving me unreliable results.

The advantage with you doing the interpolation is that you can timestamp when a block is updated and then provide an interpolated value in response to getPosition().

  • You must to post comments
0
0

You could try fmod_hardware for your sound , it might return a smoother value.

  • You must to post comments
0
0

Unfortunately I can’t us fmod_hardware as I am using features only supported by fmod_software. I guess I will percevere.
Thanks for your input.

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.