# ASIO \> doesn't want to select device

**URL:** <https://forum.juce.com/t/asio-doesnt-want-to-select-device/7750>\
**Category:** General JUCE discussion\
**Created:** [November 21, 2011, 1:04pm UTC](https://forum.juce.com/t/asio-doesnt-want-to-select-device/7750 "2011-11-21T13:04:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bdejong](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/bdejong/32/288_2.png) [@bdejong](https://forum.juce.com/u/bdejong)\
**Post date:** [November 21, 2011, 1:04pm UTC](https://forum.juce.com/t/asio-doesnt-want-to-select-device/7750/1 "2011-11-21T13:04:31Z")

</div>

Hello all,

I’m using the AudioDeviceSelectorComponent to show audio settings:

```auto
        // ....
        AudioDeviceSelectorComponent audioDevSelector(*m_AudioDeviceManager, 1, 4, 0, 0, false, false, false, false);
        audioDevSelector.setSize(500, 450);
        DialogWindow::showModalDialog ("Audio Settings", &audioDevSelector, this, Colours::lightgrey, true, false, false);
        // ....
```

This works fine and shows WME/DirectSound devices just fine and I can select them, and use them.

With ASIO, it doesn’t work…  
[list]  
[_] when I select ASIO, I see my device ( “M-Audio Profire ASIO” ) but I can’t select the device in the dropdown. It doesn’t let me select it.[/_]  
[_] maybe an additional hint: while going from Directsound (or from anywhere) to ASIO n the “audio device type” combobox, I get an audioDeviceAboutToStart call and if I -in that call- do device-\>getCurrentBufferSizeSamples I get a negative number.[/_][/list]

- Bram

---

<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:** [November 21, 2011, 1:11pm UTC](https://forum.juce.com/t/asio-doesnt-want-to-select-device/7750/2 "2011-11-21T13:11:30Z")

</div>

And does your device work in the juce demo?

---

<div class="post-metadata">

**Author:** ![bdejong](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/bdejong/32/288_2.png) [@bdejong](https://forum.juce.com/u/bdejong)\
**Post date:** [November 21, 2011, 1:13pm UTC](https://forum.juce.com/t/asio-doesnt-want-to-select-device/7750/3 "2011-11-21T13:13:02Z")

</div>

Hey Jules, I just found it…

I was initializing the as SoundDeviceManager::initialise(1, 0, 0, true);  
Aparently you aren’t allowed to construct ASIO devices with a “minimum” of 0 output channels.  
The docs state “numOutputChannelsNeeded: a minimum number of output channels to open” so I thought 0 would be acceptable.

- Bram

---

<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:** [November 21, 2011, 1:25pm UTC](https://forum.juce.com/t/asio-doesnt-want-to-select-device/7750/4 "2011-11-21T13:25:50Z")

</div>

My code doesn’t contain any rules about that kind of thing - it’s up to a device whether or not it chooses not to accept the options you give it. Surprising that it would fail in that way though.
