0
0

hi,
i’m looking for a function to play only a part of a wav file.

something like

play wav from
startposition= 2.3 sec
to
endposition =3.1 sec

greets&thanx eartz

  • You must to post comments
0
0

thanx,

i tested it this way , but it seems to be not exact enough.

for (int i=1; i<=100; i++)
{
               do{
      FSOUND_PlaySound(2, mod);
      FSOUND_SetCurrentPosition(2, 5000100);
                   } while (FSOUND_GetCurrentPosition(2) < 5000210);

FSOUND_StopSound(2);

}

its difficult to get the correct current position. i want to use this functions to create “micro sampleloops ” can i define how often a loop (with set_loop_points) is played?
thanks greets eartz

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.