audio device with PJSIP

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

 



Hi list!
I am testing my audio devices using the test auddemo of pjsip.
I have 2 devices in my system: ALSA und PA (port audio).
Using the auddemo program I try to play a file with this header: Signed 16
bit Little Endian, Rate 32000 Hz, Mono
If I use the ALSA device it is opened correctly:


Enter selection: p 1 sounds/21737.32kHz.wav
File player 'sounds/21737.32kHz.wav' created: samp.rate=32000, ch=1,
bufsize=4KB, filesize=107KB
open_playback: Open playback device 'hw:0,1'
open_playback: set format SND_PCM_FORMAT_S16_LE
open_playback: set channels: 1
open_playback: set clock rate: 32000
open_playback: clock rate set to: 32000
open_playback: set period size: 640
open_playback: period size set to: 640
open_playback: set buffer size: 3200
open_playback: buffer size set to: 3200
open_playback: playback_latency set to: 100 ms
Opened device alsa(hw:0,1) for playing, sample rate=32000, ch=1, bits=16,
period size=640 frames, latency=100 ms


But I can't hear the audio. Otherwise if I use the PA device:

Enter selection: p 2 sounds/21737.32kHz.wav
File player 'sounds/21737.32kHz.wav' created: samp.rate=32000, ch=1,
bufsize=4KB, filesize=107KB
Opened device 0: Recdsp: Recdsp PCM (hw:0,0)(ALSA) for playing, sample
rate=32000, ch=1, bits=16, 640 samples per frame, latency=100 ms
Starting Recdsp: Recdsp PCM (hw:0,0) stream..
Done, status=0

I can hear the audio correctly. As I can see bellow the two audio devices
are opened with the same configuration.
Can anyone help me please? :)
Thanks!!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20120224/b5afc427/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