<script type="text/x-red" data-help-name="AudioInputUSB"> <h3>Summary</h3> <div class=tooltipinfo> <p>Receive stereo audio from a PC or Mac. Teensy appears as a USB sound device.</p> <p align=center><img src="img/usbtype_audio_in.png"></p> </div> <h3>Audio Connections</h3> <table class=doc align=center cellpadding=3> <tr class=top><th>Port</th><th>Purpose</th></tr> <tr class=odd><td align=center>Out 0</td><td>Left Channel</td></tr> <tr class=odd><td align=center>Out 1</td><td>Right Channel</td></tr> </table> <h3>Functions</h3> <p>This object has no functions to call from the Arduino sketch. It simply streams data from the USB to its 2 output ports.</p> <!-- <h3>Hardware</h3> --> <h3>Examples</h3> <p class=exam>File > Examples > Audio > HardwareTesting > PassThroughUSB</p> </p> <h3>Notes</h3> <p>Arduino's <b>Tools > USB Type</b> menu must be set to <b>Audio</b>. </p> <p align=center><img src="img/usbtype_audio.png"></p> <p>USB input & output does not cause the Teensy Audio Library to update. At least one non-USB input or output object must be present for the entire library to update properly.</p> <p>A known problem exists with USB audio from Macintosh computers. An imperfect <a href="https://forum.pjrc.com/threads/34855-Distorted-audio-when-using-USB-input-on-Teensy-3-1?p=110392&viewfull=1#post110392">workaround can be enabled by editing usb_audio.cpp</a>. Find and uncomment "#define MACOSX_ADAPTIVE_LIMIT".</p> </script> <script type="text/x-red" data-template-name="AudioInputUSB"> <div class="form-row"> <label for="node-input-name"><i class="fa fa-tag"></i> Name</label> <input type="text" id="node-input-name" placeholder="Name"> </div> </script>