Repository navigation
Description
Running the AudioInputExample with a USB audio device selected for ofSoundStream results in the following. Note the [error] PortAudio error: Unanticipated host error
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.BRCM bcm2835 AL.pcm.front.0:CARD=0'
ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM front
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.BRCM bcm2835 AL.pcm.surround40.0:CARD=0'
ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM surround40
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.BRCM bcm2835 AL.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM surround41
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.BRCM bcm2835 AL.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM surround50
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.BRCM bcm2835 AL.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM surround51
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.BRCM bcm2835 AL.pcm.surround71.0:CARD=0'
ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM surround71
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.BRCM bcm2835 AL.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM iec958
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.BRCM bcm2835 AL.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM spdif
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.BRCM bcm2835 AL.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM spdif
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2217:(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
ALSA lib pcm_direct.c:877:(snd1_pcm_direct_initialize_slave) slave plugin does not support mmap interleaved or mmap noninterleaved access
ALSA lib pcm_dmix.c:1030:(snd_pcm_dmix_open) unable to initialize slave
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
[ofAppEGLWindow::setupRPiNativeWindow:notice] Requested Screen Size w=1024 and h=768
[ofAppEGLWindow::setupRPiNativeWindow:notice] Hardware Screen Size sw=1920 and sh=1080
[ofAppEGLWindow::setupRPiNativeWindow:notice] Final Screen Size sw=1024 and sh=768
[ofAppEGLWindow::setupEGL:notice] setting EGL Display
[ofAppEGLWindow::setupEGL:notice] EGL Display correctly set.
[ofAppEGLWindow::setupEGL:notice] No current render selected.
[ofAppEGLWindow::setupEGL:notice] Default Renderer detected.
[ofAppEGLWindow::setupEGL:notice] -----EGL-----
[ofAppEGLWindow::setupEGL:notice] EGL_VERSION_MAJOR = 1
[ofAppEGLWindow::setupEGL:notice] EGL_VERSION_MINOR = 4
[ofAppEGLWindow::setupEGL:notice] EGL_CLIENT_APIS = OpenGL_ES OpenVG
[ofAppEGLWindow::setupEGL:notice] EGL_VENDOR = Broadcom
[ofAppEGLWindow::setupEGL:notice] EGL_VERSION = 1.4
[ofAppEGLWindow::setupEGL:notice] EGL_EXTENSIONS = EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap EGL_KHR_vg_parent_image EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_lock_surface
[ofAppEGLWindow::setupEGL:notice] GL_RENDERER = VideoCore IV HW
[ofAppEGLWindow::setupEGL:notice] GL_VERSION = OpenGL ES-CM 1.1
[ofAppEGLWindow::setupEGL:notice] GL_VENDOR = Broadcom
[ofAppEGLWindow::setupEGL:notice] -------------
[ofAppEGLWindow::setupOpenGL:notice] CREATED SCREEN WITH SIZE 1024 x 768
0: bcm2835 ALSA: bcm2835 ALSA (hw:0,0)
api: 0
max in channels0
max out channels2
default sample rate:44100
1: Conectiv: USB Audio (hw:1,0)
api: 0
max in channels2
max out channels2
default sample rate:44100
2: Conectiv: USB Audio #1 (hw:1,1)
api: 0
max in channels2
max out channels2
default sample rate:44100
3: sysdefault
api: 0
max in channels0
max out channels128
default sample rate:44100
4: mmap0
api: 0
max in channels0
max out channels2
default sample rate:44100
5: default
api: 0
max in channels0
max out channels128
default sample rate:44100
Expression 'alsa_snd_pcm_hw_params_set_buffer_size_near( self->pcm, hwParams, &bufSz )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2005
Expression 'PaAlsaStreamComponent_FinishConfigure( &self->capture, hwParamsCapture, inParams, self->primeBuffers, realSr, inputLatency )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2655
Expression 'PaAlsaStream_Configure( stream, inputParameters, outputParameters, sampleRate, framesPerBuffer, &inputLatency, &outputLatency, &hostBufferSizeMode )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2767
[error] PortAudio error: Unanticipated host error
[ofAppEGLWindow:notice] setupUDev() : Created udev object.
[ofAppEGLWindow:notice] setupMouse() : mouse_fd= 5 devicePath=/dev/input/by-path/platform-bcm2708_usb-usb-0:1.2.2.2:1.0-event-mouse
[ofAppEGLWindow:notice] setupMouse() : mouse device name = Logitech USB-PS/2 Optical Mouse
[ofAppEGLWindow:notice] setupKeyboard() : keyboard_fd= 5 devicePath=/dev/input/by-path/platform-bcm2708_usb-usb-0:1.2.2.1:1.0-event-kbd
[ofAppEGLWindow:notice] setupKeyboard() : keyboard device name = Chicony PFU-65 USB Keyboard
Activity
bakercp commentedon Dec 30, 2012
Are you able to interact with it outside of oF?
http://www.alsa-project.org/main/index.php/SoundcardTesting
Also:
http://www.raspberrypi.org/phpBB3/viewtopic.php?f=38&t=14561
danzeeeman commentedon Dec 30, 2012
output and input both work outside oF.
On Sat, Dec 29, 2012 at 10:46 PM, Christopher Baker <
notifications@github.com> wrote:
"I believe in science. Unlike mathematical theorems, scientific results
can't be proved. They can only be tested again and again, until only a fool
would not believe them.
I cannot prove that electrons exist, but I believe fervently in their
existence. And if you don't believe in them, I have a high voltage cattle
prod I'm willing to apply as an argument on their behalf. Electrons speak
for themselves."
-- Seth Lloyd: Quantum Mechanical Engineer, MIT
/.
bakercp commentedon Mar 7, 2013
Any updates on this @danthemellowman ?
danzeeeman commentedon Mar 7, 2013
Haven't had time. :(
On Mar 6, 2013 11:24 PM, "Christopher Baker" notifications@github.com
wrote:
kalwalt commentedon Mar 7, 2013
i have a USB sound blaster SB1095 will see what happens in rpi and Pandaboard!
kritzikratzi commentedon Jun 26, 2013
i managed by changing:
/etc/modprobe.d/alsa-base.conf
find the line
options snd-usb-audio index=-2
and change to
options snd-usb-audio index=0
this changes the order of soundcards and puts the usb card first. verify after rebooting with aplay -l. before this change the usb thing should be listed as card1, after that as card0.
then i also edited /etc/modules and disabled the built in card completely:
# snd-bcm2835i can use audio in & out now, but get a segfault when i try to use both of them at the same time.
kritzikratzi commentedon Jun 27, 2013
the segfault was just me being silly (i hadn't initialized an array when i combined the two examples), it seems to work now.
kritzikratzi commentedon Jul 1, 2013
@jvcleave did you test this on the pi? i got sound working, but i had so many hickups with OF sound that i ended up writing everything directly to alsa with no OF at all... just curious if you managed to get rid of all the crackling going on.
jvcleave commentedon Jul 2, 2013
sorry - I read this as you had it solved. will re-open