0
0

Hi,

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?

comments, advice?

Thanks,
Chip

  • You must to post comments
0
0

hm,
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,
Chip

  • You must to post comments
0
0

Not sure if anyone was even remotely interested in this but…

Playing one shot was not hard at all. FMOD didn’t try and play straight to the end but only played the loop region. At one point I thought that

schweet :)

-Chip

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.