I admit that I haven’t looked too deep into the api before asking this but I figured someone here would be able to help me with this one.
Basically I want to be able to be able to specify a start and an end sample index and play only whats between… ie just playing a part of a sample/stream.
A good example of what I’m thinking of is when you select part of a sound file in sound forge and play/loop it.
Is there a way to do this via the api, or would I have to create a new sample?
I went through the FSOUND API reference last night and saw those functions pertaining to looping, but you’ve brought up a point I didn’t think of before, and that is playing it for one shot.
I speculated that it would be a matter of telling it to loop once or zero times, but hadn’t found anything yet to specify the number of times to loop which leads me to believe that there isn’t anything like that (of course I might be proven wrong as I continue to look through the reference material).
Is there a documented and sure way to play in one shot? If there isn’t, do you have an theories as to how I could implement that?
From my inexperienced point of view it seems that I would have to keep checking if FSOUND_GetCurrentPosition < loop_end , which doesn’t sound very good. Maybe it’s ok though.
Thanks for your insight,
Please login first to submit.