Problems with audio input

Dear all.

I’m trying to get audio input working on a Raspberry Pi, but I have run into some problems.
I test using the audioInputExample and a C-Media USB Headphone [in:1 out:2].

If I set the right deviceId and number of inputs, I get the following error at run-time:

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:  S16_LE
SUBFORMAT:  STD
SAMPLE_BITS: 16
FRAME_BITS: 32
CHANNELS: 2
RATE: [44100 48000]
PERIOD_TIME: [1000 2972155)
PERIOD_SIZE: [45 131072]
PERIOD_BYTES: [180 524288]
PERIODS: [2 1024]
BUFFER_TIME: [1875 5944309)
BUFFER_SIZE: [90 262144]
BUFFER_BYTES: [360 1048576]
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: (5804 5805)
PERIOD_SIZE: 256
PERIOD_BYTES: 1024
PERIODS: 4
BUFFER_TIME: (23219 23220)
BUFFER_SIZE: 1024
BUFFER_BYTES: 4096
TICK_TIME: 0

RtApiAlsa: dump software params after installation:

tstamp_mode: NONE
period_step: 1
avail_min: 256
start_threshold: 256
stop_threshold: -1
silence_threshold: 0
silence_size: 1073741824
boundary: 1073741824

RtApiAlsa: dump hardware params just after device open:

ACCESS:  MMAP_INTERLEAVED RW_INTERLEAVED
FORMAT:  S16_LE
SUBFORMAT:  STD
SAMPLE_BITS: 16
FRAME_BITS: 16
CHANNELS: 1
RATE: [44100 48000]
PERIOD_TIME: [1000 5944309)
PERIOD_SIZE: [45 262144]
PERIOD_BYTES: [90 524288]
PERIODS: [2 1024]
BUFFER_TIME: [1875 11888617)
BUFFER_SIZE: [90 524288]
BUFFER_BYTES: [180 1048576]
TICK_TIME: ALL

RtApiAlsa: dump hardware params after installation:

ACCESS:  RW_INTERLEAVED
FORMAT:  S16_LE
SUBFORMAT:  STD
SAMPLE_BITS: 16
FRAME_BITS: 16
CHANNELS: 1
RATE: 44100
PERIOD_TIME: (5804 5805)
PERIOD_SIZE: 256
PERIOD_BYTES: 512
PERIODS: 4
BUFFER_TIME: (23219 23220)
BUFFER_SIZE: 1024
BUFFER_BYTES: 2048
TICK_TIME: 0

RtApiAlsa: dump software params after installation:

tstamp_mode: NONE
period_step: 1
avail_min: 256
start_threshold: 256
stop_threshold: -1
silence_threshold: 0
silence_size: 1073741824
boundary: 1073741824
[ error ] ofTessellator: performTessellation(): mesh polygon tessellation failed, winding mode 0
[ error ] ofTessellator: performTessellation(): mesh polygon tessellation failed, winding mode 0
Segmentation fault
/home/pi/openFrameworks/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:176: recipe for target 'RunRelease' failed
make: *** [RunRelease] Error 139

This has been bothering me for days and I can’t really seem to get around it. Does anyone have tips on how to fix this particular issue or get audio input running on a Raspberry pi? I’m using ofx 0.9.8. on a Rpi3 running Jessie.

Thanks!

EDIT: The issue wasn’t related to the audioInput but the ofTesselator itself. I managed to solve the problem by creating a testApp for myself. Now I cannot seem to have input and output at the same time, but oh well - moving forward somehow :smiley:

Hey there, what changes did you make to ofTesselator? I’m having a similar error myself right now with mono input into a modified audioInputExample and I’d love to hear your fix!

Hey Luis! I merely used the example to check if audio input was working. Pretty sure ofTesselator was crashing due to having a mono input. I simply uncommented all parts related to the tesselator even though that makes the example pretty useless. Sorry I can’t be of more help :slight_smile: