Hi,
I am trying to play sound using sndStreamCreate.But unable to do so.
i am trying to play a wav file of 16bit/sec ,samples/sec 11.025KHz,
sStereo Mono,having size 76K and its audio format is PCM.
I am trying this particular code
Err soundInCallback(void *userData,SndStreamRef stream,
 void *buffer, UInt32 frameCount)
{
  return errNone;
}

recordH = DmGet1Resource('tbin',SoundWaveSound); 
soundP = (SndPtr) MemHandleLock(recordH); 

err = SndStreamCreate (&soundStreamIn,sndOutput, 11025,sndInt32Little, 
sndMono,soundInCallback,soundP,8560/2 ,false);

SndStreamStart(soundStreamIn); 

I am getting a bullered sound as an output on TERO 6.0 simulator.

Can any body help me outwith a sample code for playing the wav file through 
sndStreamCreate.

Thanks and Regrads,
Amritanshu Agrawal

-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to