I generated an FSB (PCM format) containing 37 WAV effects. All WAV effects are 16-bit @ 11025 Hz; most are mono, a few are stereo.
Only one of the stereo samples (or ‘subsounds’) will play, but ALL sounds are running too fast during playback (roughly 15% too fast).
What might be causing this playback behavior? The FSB is opened for streaming, and then I’m using…
FMOD_System_PlaySound (with CHANNEL_REUSE flag)
…to trigger a particular effect.
- stdev asked 11 years ago
[quote:19ghk9ao]how do you open the FSB?[/quote:19ghk9ao]
FMOD_System_CreateSound (fmod_System, “Testing.FSB”, FMOD_CREATESTREAM, fmod_Sound)
I’m not hearing any pitch change, but the wav effects clearly are running too quickly–as if FMOD is skipping PCM samples at regular intervals.
Stream buffer size doesn’t seem to be the issue; but mixing mono and stereo samples may be.
I just created a new FSB, using five, short snippets from a song. I first used a standard format (16-bit stereo, 44100Hz) and then converted the sounds to 11025Hz, just to make sure that the low sampling rate wasn’t the cause. In both cases, all five subsounds played OK.
Then I converted the 4th item to mono, leaving the others as stereo. When each is played back, item #4 runs at double-speed (chipmunk effect), and when it ends, item #5 is also played back at normal speed.
So, the playback behavior for each subsound is:
sound 0: OK
sound 1: OK
sound 2: OK
sound 3: double speed + sound 4 (normal speed)
sound 4: OK
I haven’t worked out in my head how this predicts the original problem I described (i.e., some subsounds don’t play, and those that do play are running a bit fast–but not 2x speed).
Please login first to submit.