I have been trying to run any example in openFrameworks that will get me audio out of the headphone jack. I’m running Arch Linux on Raspberry Pi 3, according to these instructions.
When I try to make
the audioOutputExample
I get this compile error. Basically a long list of undefined references, like:
RtAudio.cpp:(.text+0x5a0): undefined reference to `snd_card_next'
RtAudio.cpp:(.text+0x5ec): undefined reference to `snd_ctl_open'
RtAudio.cpp:(.text+0x610): undefined reference to `snd_ctl_pcm_next_device'
And many more. I have followed the instructions here to install rtAudio.
Separately, I am able to make
the soundPlayerExample
successfully, however I can hear no sound. Here is the console output during runtime.
There are warnings, and errors like these:
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4371:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4371:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4371:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4850:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2450:(snd_pcm_open_noupdate) Unknown PCM default
[ error ] ofOpenALSoundPlayer: loadSound(): couldn't generate source for "data/sounds/synth.wav": 40964 AL_INVALID_OPERATION
...
[warning] ofSoundPlayer: ofSoundUpdate() not implemented on this platform
[ error ] ofOpenALSoundPlayer: play(): couldn't create multiplay stereo sources: 40964 AL_INVALID_OPERATION
And more.
I don’t know if the two issues are related but thought I should raise them together here in case they are linked.