0
0

Is their anyway to count the number of times a sample has been played?

  • You must to post comments
0
0

You can increment a variable before call the play function, but with a FMOD function I don’t know…

  • You must to post comments
0
0

I got it to work.
<pre>
int middle=FSOUND_Sample_GetLength(MySample)/2;
bool current=true;
int timesplayed=0;

while(SomeCondtion)
{
if(FSOUND_GetCurrentPosition(2)<middle && current)
{
timesplayed++;
current=false;
}
if(FSOUND_GetCurrentPosition(2)>middle)
{
current=true;
}

//print timesplayed
}
</pre>

This works nicely

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.