HI,
I'm having abite of problem recording sample on the Tungsten.
I can record fine but when I play it back the sample doesn't Sound quiet
right. It appears to be choppy and rate is not the same.
Here is my code. Note not complete code.
// create the stream
Err = SndStreamCreate(
&(myVar->streamRef), sndInput,
44100, sndInt16Little,
sndStereo,writeCallbackFunc,
myVar, 4096,
false);
Err writeCallbackFunc(void* UserDataP,SndStreamRef stream, void*bufferP,
UInt32 frameCount) {
// here it just write out the buffer to the card.
VFSFileWrite(ref, 4096, bufferP, &numwritten);
return 0;
}
When I play back the saved sample at the sampled rate of 44100 it is really
fast. I need To play it at 22050 to even make out the sample.
What am I doing wrong?
Thanks
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/