# Audio settings window, when invoked from a plugin does not seem to allow playing or recording sounds

**URL:** <https://forum.juce.com/t/audio-settings-window-when-invoked-from-a-plugin-does-not-seem-to-allow-playing-or-recording-sounds/46636>\
**Category:** General JUCE discussion\
**Created:** [June 23, 2021, 4:28pm UTC](https://forum.juce.com/t/audio-settings-window-when-invoked-from-a-plugin-does-not-seem-to-allow-playing-or-recording-sounds/46636 "2021-06-23T16:28:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shlomo](https://avatars.discourse-cdn.com/v4/letter/s/eada6e/32.png) [@shlomo](https://forum.juce.com/u/shlomo)\
**Post date:** [June 23, 2021, 4:28pm UTC](https://forum.juce.com/t/audio-settings-window-when-invoked-from-a-plugin-does-not-seem-to-allow-playing-or-recording-sounds/46636/1 "2021-06-23T16:28:21Z")

</div>

Dear all,  
I am facing this strange problem across multiple computers. The audio settings window, when invoked from a plugin does not seem to allow playing or recording sounds even though the devices are recognized, while at the same time at the same computer the audio settings window from the Demo app work as expected.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/juce/original/2X/4/4828d111b4e1931c58d0dd3aeb67e08742ca5779.png)

Is there something I have to manually add to the code? It is a standalone app on windows.  
Thanks

---

<div class="post-metadata">

**Author:** ![shlomo](https://avatars.discourse-cdn.com/v4/letter/s/eada6e/32.png) [@shlomo](https://forum.juce.com/u/shlomo)\
**Post date:** [June 24, 2021, 9:53pm UTC](https://forum.juce.com/t/audio-settings-window-when-invoked-from-a-plugin-does-not-seem-to-allow-playing-or-recording-sounds/46636/2 "2021-06-24T21:53:59Z")

</div>

Still stuck with this. Any ideas?

---

<div class="post-metadata">

**Author:** ![daniel](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/daniel/32/790_2.png) [@daniel](https://forum.juce.com/u/daniel)\
**Post date:** [June 24, 2021, 10:01pm UTC](https://forum.juce.com/t/audio-settings-window-when-invoked-from-a-plugin-does-not-seem-to-allow-playing-or-recording-sounds/46636/3 "2021-06-24T22:01:59Z")

</div>

You are not supposed to access the AudioIODevice/AudioDeviceManager in a plugin. All audio is routed through the host. You get the samples through the juce::AudioBuffer argument in processBlock()

Having said that, I used that in a plugin in the past as audition functionality separated from the regular audio processing and it worked (on Mac, didn’t test Windows).

If e.g. the audio driver is set to an exclusive mode by the host your call to the AudioDeviceManager would not be able to connect.
