Receive with Streamutil.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I'm the next newbie, who is using PJSip for a project.
To start learning, I use the streamutil.c, because the first part of the project is to stream files over RTP and the second is to implement a small sip application. However, I have a small problem with the streamutil.c.
If the program starts to receive a stream, it displays this error. 

Expression 'SetApproximateSampleRate( pcm, hwParams, sr )' failed in 'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1294
Expression 'PaAlsaStreamComponent_InitialConfigure( &self->playback, outParams, self->primeBuffers, hwParamsPlayback, &realSr )' failed in 'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1873
Expression 'PaAlsaStream_Configure( stream, inputParameters, outputParameters, sampleRate, framesPerBuffer, &inputLatency, &outputLatency, &hostBufferSizeMode )' failed in 'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1994
 15:19:19.904       stream.c  Unable to create sound port: Invalid sample rate [code=469996]

If the program gets the parameter --record-file=test.wav, it works. 
I have written a program which plays only a file without a stream. This works fine with the same wave file.

Thanks for help.

All regard
Steven
 		 	   		  
_________________________________________________________________
http://redirect.gimas.net/?n=M1006xHMTL4
K?nftig E-Mails ?ber Hotmail ohne Werbung versenden!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20100630/3cae9071/attachment.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux