# Where's My Device, ASIO?

**URL:** <https://forum.juce.com/t/wheres-my-device-asio/10117>\
**Category:** General JUCE discussion\
**Created:** [March 14, 2013, 6:47pm UTC](https://forum.juce.com/t/wheres-my-device-asio/10117 "2013-03-14T18:47:32Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jrlanglois](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jrlanglois/32/21372_2.png) [@jrlanglois](https://forum.juce.com/u/jrlanglois)\
**Post date:** [March 14, 2013, 6:47pm UTC](https://forum.juce.com/t/wheres-my-device-asio/10117/1 "2013-03-14T18:47:32Z")

</div>

Hi Jules,

Several DAWs I use let me enable/disable devices straight from the ASIO4All panel (opening them right away when enabled, and closing them right away when disabled)… And so I would like to point out that with the “extra” JUCE applications, toggling devices to an “enabled” state doesn’t always “open” them, leaving one or many recently enabled devices in an “Idle” state (and therefore not showing up in the “active input/output channels” lists of a AudioDeviceSelectorComponent).

The solution is to switch to another driver, and back to ASIO, to get the device to finally appear…

Here’s an [example](http://i.imgur.com/goLCsIz.png) with the PluginHost.

The debug Output window gives me the following when this situation happens:

```auto
ASIO: error: create buffers 2 - Invalid Mode
ASIO: error: create buffers 2 - Invalid Mode
ASIO: error: Can't create i/o buffers - Invalid Mode
ASIO: error: Can't create i/o buffers - Invalid Mode
```

---

<div class="post-metadata">

**Author:** ![jrlanglois](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jrlanglois/32/21372_2.png) [@jrlanglois](https://forum.juce.com/u/jrlanglois)\
**Post date:** [March 14, 2013, 7:05pm UTC](https://forum.juce.com/t/wheres-my-device-asio/10117/2 "2013-03-14T19:05:02Z")

</div>

Messing with the code; it seems the device needs to wholly reopen every reset request to avoid this.

But, another related issue arises: the BigInteger objects used to present active input and output channels don’t get updated in the AudioDeviceManager… where they need to at least reflect the loss of devices. (otherwise things like a Graph still get the wrong number of inputs and/or outputs!)

---

<div class="post-metadata">

**Author:** ![jrlanglois](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jrlanglois/32/21372_2.png) [@jrlanglois](https://forum.juce.com/u/jrlanglois)\
**Post date:** [March 14, 2013, 7:07pm UTC](https://forum.juce.com/t/wheres-my-device-asio/10117/3 "2013-03-14T19:07:26Z")

</div>

Here’s a possible series of changes that you can make in order to get the most current list of available channels from ASIO: [[diff](https://github.com/jrlanglois/JUCE/commit/7cc079910f579f96213afbff8b3a5a336db47269)].

(Ignore the extra semi-colon)

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [March 15, 2013, 2:11pm UTC](https://forum.juce.com/t/wheres-my-device-asio/10117/4 "2013-03-15T14:11:06Z")

</div>

Much obliged! Will have a look at this today…

---

<div class="post-metadata">

**Author:** ![dstephenson](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@dstephenson](https://forum.juce.com/u/dstephenson)\
**Post date:** [March 19, 2020, 3:42pm UTC](https://forum.juce.com/t/wheres-my-device-asio/10117/5 "2020-03-19T15:42:28Z")

</div>

Dear @jrlanglois

I have posted an issue that was very similar to yours:

> [@ASIO Failure on Windows 10 - Thunderbolt 3](https://forum.juce.com/t/asio-failure-on-windows-10-thuderbolt-3/37953):
>
> Context: I am investigating a fault with our Juce based application, which exhibits when used with a particular Thunderbolt 3 external audio interface, namely the Universal Audio Arrow. In fact, the behavior not only exhibits in our application, but also in the AudioPluginHost application whose source ships with Juce. Using: Universal Audio Arrow (Thunderbolt 3) Windows 10 Visual Studio 2017 ASIO correctly enabled - ASIO SDK v2.3.3 Juce public release v5.4.7 Behavior: When using buffer…

Unfortunately the diff you posted here has long since expired. I wonder if you could share any further detail of what did/didn’t work for you solving your issue?

Can you recommend any routes I could try to solve our issue?

Thank you 🙂

---

<div class="post-metadata">

**Author:** ![jrlanglois](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jrlanglois/32/21372_2.png) [@jrlanglois](https://forum.juce.com/u/jrlanglois)\
**Post date:** [March 19, 2020, 4:09pm UTC](https://forum.juce.com/t/wheres-my-device-asio/10117/6 "2020-03-19T16:09:21Z")

</div>

Seeing that this is a 7 year old post and that I’ve long since cleaned up my forks, I won’t be able to provide more useful context…

My issue in this particular post looks different than yours though. In here, the device enablement state wasn’t set up properly, therefore the ASIO wrapper wasn’t configuring itself properly. This is in the context of using Asio4All.

Your post appears to be a driver specific thing entirely.

---

<div class="post-metadata">

**Author:** ![dstephenson](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@dstephenson](https://forum.juce.com/u/dstephenson)\
**Post date:** [March 19, 2020, 4:22pm UTC](https://forum.juce.com/t/wheres-my-device-asio/10117/7 "2020-03-19T16:22:26Z")

</div>

No problem, thank you for your response 🙂
