Error in Sample Rate

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

 



Hi,

I've a pjsip stack installed in a Samsung Q1 Ultra (with Ubuntu) and I
start pjsua with the following options (with a config file):

#
# Logging options:
#
--log-level 5
--app-log-level 4
--log-file pjlog

#
# Network settings:
#
--local-port 5060

#
# Media settings:
#
--capture-dev=1
--playback-dev=1
--playback-lat 100
--clock-rate 8000
#using default --quality 10
--no-vad
#using default --ec-tail 200
#using default --ilbc-mode 30
--rtp-port 5000
--add-codec pcmu
--dis-codec speex
--dis-codec ilbc
--dis-codec GSM
--dis-codec G722

#
# User agent:
#
--max-calls 4

#
# Buddies:
#

So, I force the clock rate at 8000 Hz because I've the other endpoint,
working with the stack, sending an audio with PCMU codec at 8000 Hz.
When I launch pjsua in Q1 I obtain some warnings like following:

pjsua_media.c  pjsua_set_snd_dev():attempting to open devices @8000 Hz
pjsua_media.c  ..failed: Invalid sample rate

and the same for devices @22050 Hz and @44100 Hz

The same pjsua on my desktop machine don't log these warnings...

If I set as Capture and playback device an USB headphone set there are no
problem.

the problem is the sound card don't supporting the 8000 Hz sample rate?

Cheers

Emanuele





[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