0
0

I have a playing DSP started with playDSP. I really need to retrieve the current play position in the DSP queue. How do I get this position?

thanks
Martin

  • You must to post comments
0
0

dsp doesnt really have ‘position’ – what dsp are you talking about?

  • You must to post comments
0
0

Thanks brett for your reply.
I know that a playing dsp doesn’t have a real position.
Actually, I wrote my own dsp that plays some samples in a particular order. Since I really like to synchronize those samples in a millisecond resolution, I will need to have a position in the current playing queue. For example if I have a DSP queue of 4 buffers with each 2048 bytes. In this case the queue for 44100Hz and stereo playback is 371 ms long. Actually, that is quite a bit high for doing even millisecond precise synchronization. The only thing I would need is a counter for the position in the actual queue. As far as I know there is a position counter e.g. in DirectX.

thank you
Martin

  • You must to post comments
0
0

If you want special data to be associated with your custom DSP you can use the setUserData and getUserData for that.

For example in this case it could be a pointer to variable for the ‘DSP position’

-Pete

  • You must to post comments
0
0

Well this is what I’ve done actually 😉 I just tried to play a sound back and printed a position every millisecond.

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.