More than one USB input?

Status
Not open for further replies.

jmercer

Member
Hello,

Can a teensy w/ audioBoards support two USB inputs?

Attempting this:

Screen Shot 2017-12-29 at 4.25.26 PM.jpg

Currently testing two audioBoards (with quad mods) with a teensy 3.2.

LineIn is Sent to host, Modified with effects, Returned to interface, Mixed with system audio from host, then out to headphone jack.

Its to get around a limitation in the host os where system audio can't be gain leveled with other material.

I can do this with commercially available USB interfaces. System audio always appears on 1&2.

I'm only seeing one usb interface.

Does it support this capability?
 
Does it support this capability?

No, sorry, the code is written for 2 channels (1 stereo) input and 2 channels output.

But it is all open source, so in theory you could edit the code to tell your PC the input is 4 channels. You'd also need to double the IN endpoint packet size, and alter the code which receives the data to double the buffer size. The audio library interface code would also need to change to pull 4 channels from the buffer instead of only 2.

While all this is possible in principle, the reality is the USB audio code isn't simple, and troubleshooting when anything goes wrong can be quite tough.

Also, running 6 channels simultaneously would mean an IN endpoint size of 360 bytes and the OUT endpoint at 180 bytes. Most frames actually will have packets of 352 & 176 bytes, since 44 samples per millisecond is the norm, but occasionally 45 are needed since the sample rate is 44.117 kHz. 540 bytes in a frame is about half of the 12 Mbit/sec USB bandwidth. That should still work, but it's getting up there...
 
Status
Not open for further replies.
Back
Top