I read through the posts related to reversed playing of samples but none of them provides sourcecode. So, it does not work for me and I don’t know why. Here is my code:
[code:1zeg1cev]FSOUND_SAMPLE* sample = FSOUND_Sample_Load(FSOUND_FREE, "pressFlippersFastMultiple.ogg", FSOUND_LOOP_OFF | FSOUND_16BITS | FSOUND_MONO, 0, 0);
int channel = FSOUND_PlaySoundEx(FSOUND_FREE, sample, NULL, true);
When I use FSOUND_LOOP_BIDI, I can hear, that the sample is correctly reversed during bidirectional looping. Though, I want to play the sample just being reversed once.
What am I doing wrong?
- CBehrenberg asked 7 years ago
Hi Brett, thanks for your answer, although it is confusing since the manual for FMOD 3.75 says under FSOUND_SetFrequency for the parameter freq: "The frequency to set. Valid ranges are from 100 to 705600, and [b:226hpih8]-100 to -705600[/b:226hpih8]." and under remarks: "[b:226hpih8]Negative frequencies[/b:226hpih8] make the sound play [b:226hpih8]backwards[/b:226hpih8], so FSOUND_SetCurrentPosition would be needed to set the sound to the right position."
- CBehrenberg answered 7 years ago
Please login first to submit.