AUDIO Problem

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

 



Hi,

By default pjsua will open sound device at 16kHz (or any value
specified in the param), when it fails it will keep trying to open
sound device at other common clock rates (e.g: 8kHz, 48kHz). I think
this was your case and finally it could open the sound device at
48kHz.

Regards,
nanang


On Thu, Nov 6, 2008 at 6:54 PM, emanuele bottegoni
<emanuele.b at automaonline.com> wrote:
> Regarding the same issue I've tried to update alsa driver but it doesn't
> works well (ref.  http://ubuntuforums.org/showthread.php?t=556217 ).
> Nanang,I have to use Alsa and not OSS (dev/dsp id=12) for other kind of
> reasons.
> So,When I launch pjsua with ./pjsua-i686-pc-linux-gnu
> --config-file=pjsuaConfig, by selecting the audio device 0 (I post my
> SNDINFO at the end of this message), I Obtain the following output. Why
> all of this?
> THANKS
>
>
>  12:51:53.437  pjsua_media.c  pjsua_set_snd_dev(): attempting to open
> devices @8000 Hz
>  12:51:53.440      pasound.c  PA message: Expression
> 'SetApproximateSampleRate( pcm, hwParams, sr )' failed in
> 'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1291
>
>  12:51:53.440      pasound.c  PA message: Expression
> 'PaAlsaStreamComponent_InitialConfigure( &self->capture, inParams,
> self->primeBuffers, hwParamsCapture, &realSr )' failed in
> 'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1862
>
>  12:51:53.440      pasound.c  PA message: Expression
> 'PaAlsaStream_Configure( stream, inputParameters, outputParameters,
> sampleRate, framesPerBuffer, &inputLatency, &outputLatency,
> &hostBufferSizeMode )' failed in
> 'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1986
>
>  12:51:53.480      pasound.c  PA message: Expression
> 'SetApproximateSampleRate( pcm, hwParams, sr )' failed in
> 'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1291
>
>  12:51:53.481      pasound.c  PA message: Expression
> 'PaAlsaStreamComponent_InitialConfigure( &self->capture, inParams,
> self->primeBuffers, hwParamsCapture, &realSr )' failed in
> 'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1862
>
>  12:51:53.481      pasound.c  PA message: Expression
> 'PaAlsaStream_Configure( stream, inputParameters, outputParameters,
> sampleRate, framesPerBuffer, &inputLatency, &outputLatency,
> &hostBufferSizeMode )' failed in
> 'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1986
>
>  12:51:53.488  pjsua_media.c  ..failed: Invalid sample rate
>  12:51:53.489  pjsua_media.c  pjsua_set_snd_dev(): attempting to open
> devices @22050 Hz
>  12:51:53.492      pasound.c  PA message: Expression
> 'SetApproximateSampleRate( pcm, hwParams, sr )' failed in
> 'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1291
>
>  12:51:53.492      pasound.c  PA message: Expression
> 'PaAlsaStreamComponent_InitialConfigure( &self->capture, inParams,
> self->primeBuffers, hwParamsCapture, &realSr )' failed in
> 'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1862
>
>  12:51:53.493      pasound.c  PA message: Expression
> 'PaAlsaStream_Configure( stream, inputParameters, outputParameters,
> sampleRate, framesPerBuffer, &inputLatency, &outputLatency,
> &hostBufferSizeMode )' failed in
> 'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1986
>
>  12:51:53.532      pasound.c  PA message: Expression
> 'SetApproximateSampleRate( pcm, hwParams, sr )' failed in
> 'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1291
>
>  12:51:53.533      pasound.c  PA message: Expression
> 'PaAlsaStreamComponent_InitialConfigure( &self->capture, inParams,
> self->primeBuffers, hwParamsCapture, &realSr )' failed in
> 'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1862
>
>  12:51:53.533      pasound.c  PA message: Expression
> 'PaAlsaStream_Configure( stream, inputParameters, outputParameters,
> sampleRate, framesPerBuffer, &inputLatency, &outputLatency,
> &hostBufferSizeMode )' failed in
> 'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1986
>
>  12:51:53.539  pjsua_media.c  ..failed: Invalid sample rate
>  12:51:53.539  pjsua_media.c  pjsua_set_snd_dev(): attempting to open
> devices @44100 Hz
>  12:51:53.542      pasound.c  PA message: Expression
> 'SetApproximateSampleRate( pcm, hwParams, sr )' failed in
> 'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1291
>
>  12:51:53.542      pasound.c  PA message: Expression
> 'PaAlsaStreamComponent_InitialConfigure( &self->capture, inParams,
> self->primeBuffers, hwParamsCapture, &realSr )' failed in
> 'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1862
>
>  12:51:53.542      pasound.c  PA message: Expression
> 'PaAlsaStream_Configure( stream, inputParameters, outputParameters,
> sampleRate, framesPerBuffer, &inputLatency, &outputLatency,
> &hostBufferSizeMode )' failed in
> 'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1986
>
>  12:51:53.584      pasound.c  PA message: Expression
> 'SetApproximateSampleRate( pcm, hwParams, sr )' failed in
> 'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1291
>
>  12:51:53.585      pasound.c  PA message: Expression
> 'PaAlsaStreamComponent_InitialConfigure( &self->capture, inParams,
> self->primeBuffers, hwParamsCapture, &realSr )' failed in
> 'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1862
>
>  12:51:53.585      pasound.c  PA message: Expression
> 'PaAlsaStream_Configure( stream, inputParameters, outputParameters,
> sampleRate, framesPerBuffer, &inputLatency, &outputLatency,
> &hostBufferSizeMode )' failed in
> 'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1986
>
>  12:51:53.591  pjsua_media.c  ..failed: Invalid sample rate
>  12:51:53.591  pjsua_media.c  pjsua_set_snd_dev(): attempting to open
> devices @48000 Hz
>  12:51:53.639      pasound.c  Opened device HDA VIA VT82xx: VT1708 Analog
> (hw:0,0)(ALSA)/HDA VIA VT82xx: VT1708 Analog (hw:0,0)(ALSA) for recording
> and playback, sample rate=48000, ch=1, bits=16, 960 samples per frame,
> input latency=100 ms, output latency=100 ms
>  12:51:53.639      pasound.c  Starting HDA VIA VT82xx: VT1708 Analog
> (hw:0,0) stream..
>  12:51:53.687      pasound.c  Done, status=0
>  12:51:53.687     resample.c  resample created: high qualiy, large filter,
> in/out rate=8000/48000
>  12:51:53.688     resample.c  resample created: high qualiy, large filter,
> in/out rate=48000/8000
>  12:51:53.688   sound_port.c  Echo canceller is now disabled in the sound port
>
> ###SNDINFO###
>
> Device #00:
>  Name                : HDA VIA VT82xx: VT1708 Analog (hw:0,0)
>  # of input channels : 2
>  # of output channels: 8
>  Default clock rate  : 48000 Hz
>
> Device #01:
>  Name                : HDA VIA VT82xx: VT1708 Digital (hw:0,1)
>  # of input channels : 2
>  # of output channels: 2
>  Default clock rate  : 44100 Hz
>
> Device #02:
>  Name                : front
>  # of input channels : 0
>  # of output channels: 8
>  Default clock rate  : 44100 Hz
>
> Device #03:
>  Name                : surround40
>  # of input channels : 0
>  # of output channels: 8
>  Default clock rate  : 44100 Hz
>
> Device #04:
>  Name                : surround41
>  # of input channels : 0
>  # of output channels: 128
>  Default clock rate  : 44100 Hz
>
> Device #05:
>  Name                : surround50
>  # of input channels : 0
>  # of output channels: 128
>  Default clock rate  : 44100 Hz
>
> Device #06:
>  Name                : surround51
>  # of input channels : 0
>  # of output channels: 8
>  Default clock rate  : 44100 Hz
>
> Device #07:
>  Name                : surround71
>  # of input channels : 0
>  # of output channels: 8
>  Default clock rate  : 44100 Hz
>
> Device #08:
>  Name                : iec958
>  # of input channels : 0
>  # of output channels: 2
>  Default clock rate  : 44100 Hz
>
> Device #09:
>  Name                : spdif
>  # of input channels : 2
>  # of output channels: 2
>  Default clock rate  : 44100 Hz
>
> Device #10:
>  Name                : default
>  # of input channels : 128
>  # of output channels: 128
>  Default clock rate  : 44100 Hz
>
> Device #11:
>  Name                : dmix
>  # of input channels : 0
>  # of output channels: 2
>  Default clock rate  : 48000 Hz
>
> Device #12:
>  Name                : /dev/dsp
>  # of input channels : 16
>  # of output channels: 16
>  Default clock rate  : 44100 Hz
>
>
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>



[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