# Switching between Input and Output audio channels on the fly for buffers

**URL:** <https://forum.juce.com/t/switching-between-input-and-output-audio-channels-on-the-fly-for-buffers/64013>\
**Category:** Getting Started\
**Created:** [October 31, 2024, 1:51am UTC](https://forum.juce.com/t/switching-between-input-and-output-audio-channels-on-the-fly-for-buffers/64013 "2024-10-31T01:51:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ZReg](https://avatars.discourse-cdn.com/v4/letter/z/57b2e6/32.png) [@ZReg](https://forum.juce.com/u/ZReg)\
**Post date:** [October 31, 2024, 1:51am UTC](https://forum.juce.com/t/switching-between-input-and-output-audio-channels-on-the-fly-for-buffers/64013/1 "2024-10-31T01:51:25Z")

</div>

Hey, I am new to JUCE and am creating a simple app that creates a waveform based on audio input. Currently, I am having trouble accessing both input and output channels. I want to be able to switch between them with a toggle button but currently, I am only able to access my microphone audio channels and am having trouble switching the audio stream buffers to my desktop audio stream instead. I am using Voicemeeter as my audio interface for my computer and I am using the “Processing audio input” & “Visualise the frequencies of a signal in real time” tutorials as a basis for setting up my device manager and AudioDeviceSelectorComponent. Any pointers for something I can look to for information relating to this problem would be much appreciated!

---

<div class="post-metadata">

**Author:** ![ZReg](https://avatars.discourse-cdn.com/v4/letter/z/57b2e6/32.png) [@ZReg](https://forum.juce.com/u/ZReg)\
**Post date:** [November 12, 2024, 8:57am UTC](https://forum.juce.com/t/switching-between-input-and-output-audio-channels-on-the-fly-for-buffers/64013/2 "2024-11-12T08:57:18Z")

</div>

I fixed the problem. I instantiated my audio channels in the wrong order.
