# Problem using AudioDeviceSelectorComponent

**URL:** <https://forum.juce.com/t/problem-using-audiodeviceselectorcomponent/3093>\
**Category:** General JUCE discussion\
**Created:** [July 29, 2008, 8:10pm UTC](https://forum.juce.com/t/problem-using-audiodeviceselectorcomponent/3093 "2008-07-29T20:10:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aviram2k](https://avatars.discourse-cdn.com/v4/letter/a/fbc32d/32.png) [@aviram2k](https://forum.juce.com/u/aviram2k)\
**Post date:** [July 29, 2008, 8:10pm UTC](https://forum.juce.com/t/problem-using-audiodeviceselectorcomponent/3093/1 "2008-07-29T20:10:15Z")

</div>

hi,  
i’m trying to use the AudioDeviceSelectorComponent class.  
i have notice that whan the last operator hideAdvancedOptionsWithButton is “false” the component crush.

while debugging i found that the problem is in the sample rate parameter.

my code is:

```auto
AudioDeviceSelectorComponent audioSettingsComp (*deviceManager,0, 256,
0, 256, true, true, true, false);
```

am i doing something wrong ?[/b]

---

<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:** [July 30, 2008, 10:22am UTC](https://forum.juce.com/t/problem-using-audiodeviceselectorcomponent/3093/2 "2008-07-30T10:22:56Z")

</div>

I think that sounds like a bug that I fixed yesterday - try getting the tip again now…

---

<div class="post-metadata">

**Author:** ![aviram2k](https://avatars.discourse-cdn.com/v4/letter/a/fbc32d/32.png) [@aviram2k](https://forum.juce.com/u/aviram2k)\
**Post date:** [July 30, 2008, 11:51am UTC](https://forum.juce.com/t/problem-using-audiodeviceselectorcomponent/3093/3 "2008-07-30T11:51:57Z")

</div>

thanks !! 😃
