I’ve received an .ogg file that I am treating as a stream, it loops perfectly fine from start to end on its own, but what I am trying to do specifically is get FMOD to detect and use the built-in loop marker (made from source forge) from the file.
I have one file, I want it to start from the beginning (0) and go all the way to the end (x), and then loop back to the internal file marker (say 10 seconds in or so).
My question simply is this: [b:1i0up0j6]how can I get FMOD to use the internal loop marker?[/b:1i0up0j6]
[b:1i0up0j6]What are ‘PCM SAMPLE’s that SetLoopPoints takes in as its start and end parameters? I’ve tested these and they do not match up as either milliseconds nor file location in bytes, so what exactly are they and how can I figure out what to pass if I can’t get automatic marker detection working?[/b:1i0up0j6]
Many thanks, I hope I can get help on this soon!
- soulzek asked 11 years ago
I’ve discovered a little more control and understanding that getting the sample length from the SAMPLE and not the STREAM helps out a bit, however it still does not linearlly add up, or I am not understanding something correctly.
My file sample size is 34815. If I set the loop points at 0 and that EXACT same number (34815), the stream loops properly from start to end as expected. What I don’t understand is that setting the end point to something just a bit smaller (like 30000) makes the file repeat at the 2 second mark or so, when technically 30000 of 34815 should make it loop when the file has played through 86% of its duration. So, this is confusing me. I’d still appreciate it if someone could just enlighten me on how to make FMOD detect the looping all by itself.
Please login first to submit.