[Freeswitch-dev] portaudio help

Oleg Khovayko khovayko at gmail.com
Fri Apr 30 20:37:24 PDT 2010


Dear Developers,

Can you help me with portaudio module?


On the my machine (FreeBSD OS),
I have active sound card and driver:

{{{

dmesg | grep pcm
pcm0: <ESS 18xx DSP> on sbc0
pcm0: [GIANT-LOCKED]
pcm0: [ITHREAD]

}}}

Also, when I send some random file to device, I hear noise:

cat mime.types > /dev/dsp



In the freeswitch config, I have enabled load module portaudio.

Devlist shows device OK:



freeswitch at internal> pa devlist xml
<xml>
<devices>
<device id="0" name="/dev/dsp" inputs="2" outputs="2" />
</devices>
<bindings>
<ring device="0" />
<input device="0" />
<output device="0" />
</bindings>
</xml>



*************************************************************************
But, when I try to use "pa" commands, I see message "FAIL:Device Error!"
*************************************************************************


freeswitch at internal> pa call 5000
FAIL:Device Error!

freeswitch at internal> 2010-04-30 18:37:42.325070 [NOTICE] 
switch_channel.c:642 New Channel portaudio/ 
[97a42efd-a854-df11-b1f2-005004c3cb7e]
2010-04-30 18:37:42.873149 [ERR] mod_portaudio.c:1394 Error opening 
audio device retrying
2010-04-30 18:37:44.384778 [ERR] mod_portaudio.c:1403 Can't open audio 
device
2010-04-30 18:37:44.384778 [NOTICE] mod_portaudio.c:1784 Close Channel 
portaudio/ [CS_NEW]

freeswitch at internal> pa call 1001
FAIL:Device Error!

freeswitch at internal> 2010-04-30 18:38:00.223324 [NOTICE] 
switch_channel.c:642 New Channel portaudio/ 
[5456da07-a954-df11-b1f2-005004c3cb7e]
2010-04-30 18:38:00.754025 [ERR] mod_portaudio.c:1394 Error opening 
audio device retrying
2010-04-30 18:38:02.264923 [ERR] mod_portaudio.c:1403 Can't open audio 
device
2010-04-30 18:38:02.264923 [NOTICE] mod_portaudio.c:1784 Close Channel 
portaudio/ [CS_NEW]
2010-04-30 18:38:15.264125 [NOTICE] sofia_reg.c:340 Registering 
callwithus.com

freeswitch at internal> pa dump
-ERR no reply

freeswitch at internal> 2010-04-30 18:51:09.345048 [INFO] 
mod_portaudio.c:1163 PortAudio version number = 1899
PortAudio version text = 'PortAudio V19-devel (built Dec  4 2009)'
2010-04-30 18:51:09.345048 [INFO] mod_portaudio.c:1187 Number of devices = 1
2010-04-30 18:51:09.345048 [INFO] mod_portaudio.c:1194 
--------------------------------------------------------------------------------
2010-04-30 18:51:09.345048 [INFO] mod_portaudio.c:1196 Device #0 
2010-04-30 18:51:09.345048 [INFO] mod_portaudio.c:1201 **Default 
Input2010-04-30 18:51:09.345048 [INFO] mod_portaudio.c:1212 **Default 
Output2010-04-30 18:51:09.345048 [INFO] mod_portaudio.c:1223 ** | 
2010-04-30 18:51:09.345048 [INFO] mod_portaudio.c:1226 Name: /dev/dsp
2010-04-30 18:51:09.345048 [INFO] mod_portaudio.c:1227 Host: OSS | 
2010-04-30 18:51:09.345048 [INFO] mod_portaudio.c:1228 inputs: 2 | 
2010-04-30 18:51:09.345048 [INFO] mod_portaudio.c:1229 outputs: 2 | 
2010-04-30 18:51:09.345048 [INFO] mod_portaudio.c:1231 Default rate: 
44100.00
2010-04-30 18:51:09.345048 [INFO] mod_portaudio.c:1233 Default input 
latency: 0.012 | 2010-04-30 18:51:09.345048 [INFO] mod_portaudio.c:1234 
Default output latency: 0.012
2010-04-30 18:51:09.345048 [INFO] mod_portaudio.c:1251 half-duplex 16 
bit 2 channel input rates:
         8000.00, 9600.00, 11025.00, 12000.00, 16000.00, 22050.00, 24000.00
         32000.00, 44100.00, 48000.00, 88200.00, 96000.00, 192000.00
2010-04-30 18:51:09.365448 [INFO] mod_portaudio.c:1256 half-duplex 16 
bit 2 channel output rates:
         8000.00, 9600.00, 11025.00, 12000.00, 16000.00, 22050.00, 24000.00
         32000.00, 44100.00, 48000.00, 88200.00, 96000.00, 192000.00
2010-04-30 18:51:09.365448 [INFO] mod_portaudio.c:1262 full-duplex 16 
bit 2 channel input, 2 channel output rates:
         8000.00, 9600.00, 11025.00, 12000.00, 16000.00, 22050.00, 24000.00
         32000.00, 44100.00, 48000.00, 88200.00, 96000.00, 192000.00
2010-04-30 18:51:09.637693 [INFO] mod_portaudio.c:1269 
--------------------------------------------------------------------------------


freeswitch at internal> /exit







olegh# ls /dev/ds*
/dev/dsp0.0
olegh#




More information about the FreeSWITCH-dev mailing list