Python alsa errors

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

 



I?m having trouble connecting the a call to a my sound device with the
python lib. I?m not sure if something didn?t get installed or if my script
is wrong or if I need to configure alsa more.



When I call make_call(), I get:



Expression 'SetApproximateSampleRate( pcm, hwParams, sr )' failed in
'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1294

Expression 'PaAlsaStreamComponent_InitialConfigure( &self->capture,
inParams, self->primeBuffers, hwParamsCapture, &realSr )' failed in
'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1870

Expression 'PaAlsaStream_Configure( stream, inputParameters,
outputParameters, sampleRate, framesPerBuffer, &inputLatency,
&outputLatency, &hostBufferSizeMode )' failed in
'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1994

Expression 'SetApproximateSampleRate( pcm, hwParams, sr )' failed in
'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1294

Expression 'PaAlsaStreamComponent_InitialConfigure( &self->capture,
inParams, self->primeBuffers, hwParamsCapture, &realSr )' failed in
'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1870

Expression 'PaAlsaStream_Configure( stream, inputParameters,
outputParameters, sampleRate, framesPerBuffer, &inputLatency,
&outputLatency, &hostBufferSizeMode )' failed in
'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1994



Then when I destroy.lib() I get:

python2: ../src/pjmedia-audiodev/audiodev.c:682:
pjmedia_aud_dev_default_param: Assertion `aud_subsys.pf' failed.

[1]    2222 abort (core dumped)  python2 pjsip.py



I can see the call come in to Asterisk and Asterisk plays a sound file, but
obviously I don?t hear it on my speaker.

pjsua is able to send/receive audio and I don?t give it any specific audio
configuration.



I?m a little confused about the files it is complaining about up there.
They don?t exist on my system except in the build directories.



What should I look at next?

--

Travis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20121017/42b15938/attachment-0001.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