[Portaudio] Portaudio "queries" on ARM
Ajay Garg
ajaygargnsit at gmail.com
Fri Mar 30 14:32:56 EDT 2012
Hi all.
My original aim is to run "Import Audio" in audacity; on ARM architecture.
However, the error messages that appear seem to be related to portaudio.
As part of my efforts,
a)
I downloaded and built "Portaudio" on ARM, from
http://www.portaudio.com/archives/pa_stable_v19_20111121.tgz.
b)
I then ran
"./configure --with-alsa"
"make"
"sudo make install"
c)
"/bin/pa_devs" gave the output
######################################################################################################
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround40
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround41
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround50
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround51
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports
only playback stream
Cannot connect to server socket err = No such file or directory
Cannot connect to server socket
jack server is not running or cannot be started
PortAudio version number = 1899
PortAudio version text = 'PortAudio V19-devel (built Mar 30 2012 21:41:05)'
Number of devices = 3
--------------------------------------- device #0
Name = OLPC XO-1.75: (hw:0,0)
Host API = ALSA
Max inputs = 2, Max outputs = 2
Default low input latency = 0.0116
Default low output latency = 0.0107
Default high input latency = 0.0464
Default high output latency = 0.0427
Default sample rate = 48000.00
Supported standard sample rates
for half-duplex 16 bit 2 channel input =
8000.00, 11025.00, 16000.00, 22050.00,
32000.00, 44100.00, 48000.00, 88200.00,
96000.00
Supported standard sample rates
for half-duplex 16 bit 2 channel output =
8000.00, 11025.00, 16000.00, 22050.00,
32000.00, 48000.00
Supported standard sample rates
for full-duplex 16 bit 2 channel input, 2 channel output =
8000.00, 11025.00, 16000.00, 22050.00,
32000.00, 48000.00
--------------------------------------- device #1
[ Default Input, Default Output ]
Name = default
Host API = ALSA
Max inputs = 128, Max outputs = 128
Default low input latency = 0.0116
Default low output latency = 0.0116
Default high input latency = 0.0464
Default high output latency = 0.0464
Default sample rate = 44100.00
Supported standard sample rates
for half-duplex 16 bit 128 channel input =
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
Supported standard sample rates
for half-duplex 16 bit 128 channel output =
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
Supported standard sample rates
for full-duplex 16 bit 128 channel input, 128 channel output =
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
--------------------------------------- device #2
Name = dmix
Host API = ALSA
Max inputs = 0, Max outputs = 2
Default low input latency = -1.0000
Default low output latency = 0.0427
Default high input latency = -1.0000
Default high output latency = 0.0427
Default sample rate = 48000.00
Supported standard sample rates
for half-duplex 16 bit 2 channel output =
48000.00
----------------------------------------------
######################################################################################################
d)
"/bin/paex_sine" gave the output
######################################################################################################
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround40
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround41
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround50
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround51
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports
only playback stream
Cannot connect to server socket err = No such file or directory
Cannot connect to server socket
jack server is not running or cannot be started
PortAudio Test: output sine wave. SR = 44100, BufSize = 64
Play for 5 seconds.
Stream Completed: No Message
Test finished.
######################################################################################################
e)
As a side note, I am not able to hear any echoed voice via "arecord | aplay".
f)
However, if I do "aplay <uncompressed mp3>", I can listen to playing music;
however the same does not work for a conventional, compressed mp3.
So, I will be grateful, if someone could please let me know as to
which part should I investigate into :: portaudio, or alsa.
Will be grateful for a reply.
Thanks and Regards,
Ajay
More information about the Portaudio
mailing list