Hi...
I'm getting a crash in the 5.4 simulator when trying to call the
SndStreamStart(). The error that I'm getting is about an error in
SerialLinkMgr.c, line 339 Error OpenSocket. The snippet of code is:
SndStreamRef sndRef;
void *sndPtr;
Err PlaySoundCallBack(void *userDataPtr, SndStreamRef stream, void *fillBuffer,
UInt32 frameCount)
{
return errNone;
}
void PlaySound(D)
{
Err err;
if ((err = SndStreamCreate(&sndRef, sndOutput, 8000, sndInt8, sndMono,
PlaySoundCallBack, sndPtr, 1024, FALSE)) == errNone) {
if ((err = SndStreamStart(sndRef)) == errNone) {
//success
} else {
//error
}
....
I place a breakpoint inside the PlaySoundCallBack to see if it even gets there,
and it doesn't.
The crash is when I try to step over the SndStreamStart(). I'm thinking that I
might be linking to the wrong lib since the error message is so bogus. I'm
linking with runtime_4i_a5.lib.
Can somebody please help me? I'm able to play sounds through SndPlayResource
just fine...just can't get past this streaming bottleneck.
Thanks,
David
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/