# p5.AudioIn using more than one audio channel

**URL:** <https://discourse.processing.org/t/p5-audioin-using-more-than-one-audio-channel/8020>\
**Category:** Libraries\
**Created:** [February 1, 2019, 10:18am UTC](https://discourse.processing.org/t/p5-audioin-using-more-than-one-audio-channel/8020 "2019-02-01T10:18:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![specpro](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/specpro/32/3498_2.png) [@specpro](https://discourse.processing.org/u/specpro)\
**Post date:** [February 1, 2019, 10:18am UTC](https://discourse.processing.org/t/p5-audioin-using-more-than-one-audio-channel/8020/1 "2019-02-01T10:18:51Z")

</div>

My sound card has more than one channel audio source. Is it possible to access the other audio channels? Seems that the “setSource” function always defaults to channel 1 and 2 of the sound card. Anyway to set to channel 3 and 4 or better still get the stereo mix of all the channels on the sound card?

Appreciate any help or suggestions. Thanks!

Listing devices gives:

> (3) [InputDeviceInfo, InputDeviceInfo, InputDeviceInfo]0: InputDeviceInfo {deviceId: “default”, kind: “audioinput”, label: “Default - Dante Virtual Soundcard (Virtual)”, groupId: “c3d1a521f58ca227b27fd3687f5004803f8fc59f6304e99c4e6d3e2978c49646”}1: InputDeviceInfo {deviceId: “a9bf8bc79d365f0c97b6ddedd5a01e3a13f32d25a62b4dd837777953b3d1d4fc”, kind: “audioinput”, label: “Internal Microphone (Built-in)”, groupId: “d950b3f5998e21e70b2f190e86790d8b98b249512c60429ceeb299831ee21bba”}2: InputDeviceInfo {deviceId: “23f18861d8d494d66d3a3673116a853ee8fb24420c7c847befe7b0b096e0dd5f”, kind: “audioinput”, label: “Dante Virtual Soundcard (Virtual)”, groupId: “c3d1a521f58ca227b27fd3687f5004803f8fc59f6304e99c4e6d3e2978c49646”}length: 3\_\_proto\_\_: Array(0)

set source to

1. InputDeviceInfo {deviceId: “default”, kind: “audioinput”, label: “Default - Dante Virtual Soundcard (Virtual)”, groupId: “c3d1a521f58ca227b27fd3687f5004803f8fc59f6304e99c4e6d3e2978c49646”}

Result of setSource:

> deviceId: “default”  
> groupId: “c3d1a521f58ca227b27fd3687f5004803f8fc59f6304e99c4e6d3e2978c49646”  
> kind: “audioinput”  
> label: “Default - Dante Virtual Soundcard (Virtual)”  
> **proto** : InputDeviceInfo
