Hey people,
I hope I'm in the right place bothering all of you, but I need some help
with getting a little project going. Background:
I'm trying to connect my apartments door intercom to a USB soundcard and
then be able to connect to it when someone rings the door.
I've hit a somewhat significant issue tho: I was able to compile
pjproject 2.1.0 without a hiccup, but there are several issues
interfacing with the soundcard.
First of all, there's zero audio. You can tell there is a change in
status when pjsua is started because of slight noise setting in, but
in-call there's nothing but silence, the call being ended because of
inactivity after a bit. Testing it with the onboard audio output, there
actually is (Very quiet and bad) audio being transmitted.
When a call is ended, I always get this and the program seems to hang
somewhat:
23:16:10.115 pjsua_aud.c .Closing USB Audio Device: USB Audio
(hw:1,0) sound playback device and USB Audio Device: USB Audio (hw:1,0)
sound capture device
I can play wav's fine through aplay. pjsystest's "Play Tone" also works,
with the hang I described above occuring. When I use the "Device Test" I
get the following:
1
23:22:54.598 systest.c Running Audio Device Test
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
Unable to open device: Invalid sample rate (err=469996)
Error
Sorry we encountered error with the testInvalid sample rate
If anyone can help me out here, I'd really appreciate it greatly!
Best regards,
John
On Tue, Nov 22, 2016 at 11:23:59PM +0100, SEKCobra wrote:
Hey people,
I hope I'm in the right place bothering all of you, but I need some help
with getting a little project going. Background:
I'm trying to connect my apartments door intercom to a USB soundcard and
then be able to connect to it when someone rings the door.
I've hit a somewhat significant issue tho: I was able to compile pjproject
2.1.0 without a hiccup, but there are several issues interfacing with the
soundcard.
Why 2.1.0 and not a newer version?
Also: what software do you run on that system? Rapsbian? Anything else?
--
Tzafrir Cohen
icq#16849755 jabber:tzafrir.cohen@xorcom.com
+972-50-7952406 mailto:tzafrir.cohen@xorcom.com
http://www.xorcom.com