Help: Unable to open sound device: Invalid sample rate [code=269996]

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

 



Hi guys,

I'm having trouble with wav file player. Here's the scenario:

[franky at localhost samples]$ ./playfile-i686-pc-linux-gnu ../XP.wav
 14:23:07.598 os_core_unix.c  pjlib 1.0.1 for POSIX initialized
 14:23:07.713      pasound.c  PortAudio sound library initialized, status=0
 14:23:07.713      pasound.c  PortAudio host api count=2
 14:23:07.713      pasound.c  Sound device count=14
 14:23:07.713          pjlib  select() I/O Queue created (0x81c8be4)
 14:23:07.714   wav_player.c  File player '../XP.wav' created:
samp.rate=22050, ch=2, bufsize=4KB, filesize=424KB
 14:23:07.714      pasound.c  PA message: Expression
'SetApproximateSampleRate( pcm, hwParams, sr )' failed in
'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1291

 14:23:07.715      pasound.c  PA message: Expression
'PaAlsaStreamComponent_InitialConfigure( &self->playback, outParams,
self->primeBuffers, hwParamsPlayback, &realSr )' failed in
'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1865

 14:23:07.715      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

 14:23:07.716     playfile.c  Unable to open sound device: Invalid
sample rate [code=269996]


[franky at localhost samples]$ ./sndtest-i686-pc-linux-gnu
 14:28:15.704 os_core_unix.c  pjlib 1.0.1 for POSIX initialized
 14:28:15.799      pasound.c  PortAudio sound library initialized, status=0
 14:28:15.799      pasound.c  PortAudio host api count=2
 14:28:15.799      pasound.c  Sound device count=14
 14:28:15.800          pjlib  select() I/O Queue created (0x951bfec)
 14:28:15.801      sndtest.c  Found 14 devices:
 14:28:15.801      sndtest.c   0: Intel ICH5: Intel ICH5 (hw:0,0)
(capture=2, playback=6)
 14:28:15.801      sndtest.c   1: Intel ICH5: Intel ICH5 - MIC ADC
(hw:0,1) (capture=2, playback=0)
 14:28:15.801      sndtest.c   2: Intel ICH5: Intel ICH5 - MIC2 ADC
(hw:0,2) (capture=2, playback=0)
 14:28:15.801      sndtest.c   3: Intel ICH5: Intel ICH5 - ADC2
(hw:0,3) (capture=2, playback=0)
 14:28:15.802      sndtest.c   4: Intel ICH5: Intel ICH5 - IEC958
(hw:0,4) (capture=0, playback=2)
 14:28:15.802      sndtest.c   5: front (capture=0, playback=6)
 14:28:15.802      sndtest.c   6: surround40 (capture=0, playback=4)
 14:28:15.802      sndtest.c   7: surround41 (capture=0, playback=128)
 14:28:15.802      sndtest.c   8: surround50 (capture=0, playback=128)
 14:28:15.802      sndtest.c   9: surround51 (capture=0, playback=6)
 14:28:15.803      sndtest.c   10: iec958 (capture=0, playback=2)
 14:28:15.803      sndtest.c   11: spdif (capture=0, playback=2)
 14:28:15.803      sndtest.c   12: dmix (capture=0, playback=2)
 14:28:15.803      sndtest.c   13: /dev/dsp (capture=16, playback=4)
Unable to open device for capture: Invalid sample rate (err=269996)


Any suggestions will be greatly appreciated. Thanks!

Frank
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20090217/a752c7cb/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