ofSoundStream (ofPortAudioSoundStream under ubuntu) works fine with the default input device. but when i try to set a deviceID before calling setup i get the following error:
0: HDA Intel: ALC883 Analog (hw:0,0)
api: 0
max in channels2
max out channels6
default sample rate:44100
1: HDA Intel: ALC883 Digital (hw:0,1)
api: 0
max in channels2
max out channels2
default sample rate:44100
2: HDA Intel: ALC883 Analog (hw:0,2)
api: 0
max in channels2
max out channels0
default sample rate:44100
3: Wireless Mic #023114341: USB Audio (hw:1,0)
api: 0
max in channels2
max out channels0
default sample rate:44100
4: front
api: 0
max in channels0
max out channels6
default sample rate:44100
5: surround40
api: 0
max in channels0
max out channels6
default sample rate:44100
6: surround41
api: 0
max in channels0
max out channels128
default sample rate:44100
7: surround50
api: 0
max in channels0
max out channels128
default sample rate:44100
8: surround51
api: 0
max in channels0
max out channels6
default sample rate:44100
9: surround71
api: 0
max in channels0
max out channels6
default sample rate:44100
10: iec958
api: 0
max in channels0
max out channels2
default sample rate:44100
11: spdif
api: 0
max in channels2
max out channels2
default sample rate:44100
12: rawbluetooth
api: 0
max in channels1
max out channels1
default sample rate:8000
13: bluetooth
api: 0
max in channels128
max out channels128
default sample rate:44100
14: pulse
api: 0
max in channels32
max out channels32
default sample rate:44100
15: dmix
api: 0
max in channels0
max out channels2
default sample rate:48000
16: default
api: 0
max in channels32
max out channels32
default sample rate:44100
i tried both devices and both are working with ofSoundStream. but only one at the same time and only if i don’t set any device id. in this setup i have to configure my default input device to switch between both.
if i use the pulse deviceID it is the same. it works but i can only use the system default input.
i tried to stop pulseaudio with your suggested command and get
* PulseAudio configured for per-user sessions
after some more steps i managed to kill pulseaudio (and im not able to start it again …) and now i can set device 13 ( bluetooth headset) but not device 3 (wireless ps2 singstar) and without setting any deviceId the example app crashs - so i cant use the default until next system restart.
during reading about pulseaudio i came across stuff like ALSA and OSS. maybe i have to change some settings there or need other verions? maybe configure pulseaudio better?
i managed to use rtaudio with device 3 but as i mentioned before with rtaudio listDevices() prints only device 0-3 and logically i get an error with invalid deviceId if i try anything higher than 3.
so at the moment i can set one of them as default with portaudio, use device 3 with rtaudio or use device 13(bluetooth) after killing pulse. i need just one way to use both…