0
0

The sample code for doing realtime full duplex recording / playback is extremely helpful… I have a question on the sound settings used to create the sample (FSOUND_Sample_Alloc).

if (FSOUND_GetOutput() == FSOUND_OUTPUT_OSS)
{
    samp1 = FSOUND_Sample_Alloc(FSOUND_UNMANAGED, RECORDLEN, FSOUND_MONO | FSOUND_8BITS | FSOUND_UNSIGNED, RECORDRATE, 255, 128, 255);
}
else
{
    samp1 = FSOUND_Sample_Alloc(FSOUND_UNMANAGED, RECORDLEN, FSOUND_STEREO | FSOUND_16BITS , RECORDRATE, 255, 128, 255);
}

Why do these two cases need to be handled differently? I tried the “else” branch using 8-bit sample size, and get static in my duplex playback (though it plays back perfectly if I write the sound out to file, then play it back later.) I was hoping to use 8-bit to keep our sound file sizes small.

Thanks!
Kristine

  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.