Hi Tom,
ok, so it looks like you only read with the half sample rate in case of
wave, correct? I would use a debugger and check the SndStreamCreate
call. I don't know what happens but maybe the variable of sampleRate is
trashed somehow. With the half samplerate you would play it with double
speed.
Henk
Tom Frauenhofer wrote:
Henk Jonas wrote:
Have you evaluate if you record the same amount of bytes in both
cases?
I can't see any difference if you write wave or raw in your
callback
function. Means, I second of raw and 1 second of wave must have
the same
size + the size of the wave header, correct? Or does you really
only get
the half amount of samples during wave?
For a roughly 6-second recording the callback gets invoked approximately 60
times in RAW mode and approximately 30 times in Wave mode. When I play back
the files, the RAW file is a the proper speed, but the Wave file is at double
speed.
(And I know, it doesn't make any sense. The only difference is that I have
written 44 bytes to the head of the VFS file. Really strange.)
----
Tom Frauenhofer, [EMAIL PROTECTED]
Palm OS® Certified Developer
http://www.beret.com
My Blog: http://tomfrauen.blogspot.com
--
-------------------------------------------------------------------------
Henk Jonas [EMAIL PROTECTED]
Palm OS ® certified developer
Please contact me, if you need an off-site contract worker.
-------------------------------------------------------------------------
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/