I’ve created a plugin to play Amiga MODs. Then in getposition() in the plugin I return the currently playing row etc. this works fine EXCEPT the row returned is a bit before the actual sound. I would guess this has to to with some sort of buffering by FMOD. So my question is:
Is it possible to return the exact current position?
- bLAZER asked 8 years ago
- You must login to post comments
I understood you , what I was doing is describing what fmod does so you have to latency adjust in a similar way.
- Brett Paterson answered 8 years ago
- You must login to post comments
Sorry, got it.
How do I know how long the delay/buffer is then? Where is this specified?
- bLAZER answered 8 years ago
- You must login to post comments
So, Brett (or anybody), could you give some rough pseudo code how FMOD does it?
- bLAZER answered 7 years ago
- You must login to post comments
What FMOD does internally is give a latency adjusted position. It does this storing the mod rows that are processed in a circular buffer, which is the size of delay incurred by the buffering. It then returns [currentpos-1] to give the ‘old’ position to the user, which is the one that he is listening to.
- Brett Paterson answered 8 years ago
- You must login to post comments
I’m not sure if you understood me… I’m not using FMOD’s plugin to play the MODS. I’m using LibMODPlug, but I guess this problem is for all "home made" plugins in general, that the 3rd party code is before the actual sound you hear in FMOD. Can I do anything about it?
- bLAZER answered 8 years ago
- You must login to post comments
Please login first to submit.