I’m using a Raspberry Pi B+ running jessie with OF v0.9.8.
I’ve compiled a project with ofMaxim to test some basic audio playback which works fine on Mac OS. The program compiles fine but during runtime I have some errors relating to RtApiAlsa. The error ends with [ error ] RtApiAlsa::probeDeviceOpen: pcm device (hw:0,0) won't open for input.
.
I’ve seen others with some similar issues, this thread had a solution to a similar issue but didn’t resolve it for me [solved] RPi + sound synthesis.
I’ve been attempting to get audio playback either from the HDMI port or the audio jack but both don’t output audio. I went through the steps on the Alsa project page and testing it with aplay -D default test.wav
did work but still no joy with the OF program running.
Has anyone got a solution for this?
Thanks
Here is the full error:
Ch: 2, len: 9600960
connect(2) call to /tmp/jack-1000/default/jack_0 failed (err=No such file or directory)
attempt to connect to server failed
RtApiAlsa: dump hardware params just after device open:
ACCESS: MMAP_INTERLEAVED RW_INTERLEAVED
FORMAT: U8 S16_LE
SUBFORMAT: STD
SAMPLE_BITS: [8 16]
FRAME_BITS: [8 32]
CHANNELS: [1 2]
RATE: [8000 48000]
PERIOD_TIME: (5333 16384000]
PERIOD_SIZE: [256 131072]
PERIOD_BYTES: [1024 131072]
PERIODS: [1 128]
BUFFER_TIME: (5333 16384000]
BUFFER_SIZE: [256 131072]
BUFFER_BYTES: [1024 131072]
TICK_TIME: ALL
RtApiAlsa: dump hardware params after installation:
ACCESS: RW_INTERLEAVED
FORMAT: S16_LE
SUBFORMAT: STD
SAMPLE_BITS: 16
FRAME_BITS: 32
CHANNELS: 2
RATE: 44100
PERIOD_TIME: (11609 11610)
PERIOD_SIZE: 512
PERIOD_BYTES: 2048
PERIODS: 4
BUFFER_TIME: (46439 46440)
BUFFER_SIZE: 2048
BUFFER_BYTES: 8192
TICK_TIME: 0
RtApiAlsa: dump software params after installation:
tstamp_mode: NONE
period_step: 1
avail_min: 512
start_threshold: 512
stop_threshold: -1
silence_threshold: 0
silence_size: 1073741824
boundary: 1073741824
[ error ] RtApiAlsa::probeDeviceOpen: pcm device (hw:0,0) won't open for input.