# AudioDeviceManager issues

**URL:** <https://forum.juce.com/t/audiodevicemanager-issues/61432>\
**Category:** General JUCE discussion\
**Created:** [May 16, 2024, 5:30am UTC](https://forum.juce.com/t/audiodevicemanager-issues/61432 "2024-05-16T05:30:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajith2588](https://avatars.discourse-cdn.com/v4/letter/a/e36b37/32.png) [@ajith2588](https://forum.juce.com/u/ajith2588)\
**Post date:** [May 16, 2024, 5:30am UTC](https://forum.juce.com/t/audiodevicemanager-issues/61432/1 "2024-05-16T05:30:27Z")

</div>

Currently am working below piece of code using JUCE .  
1st line code , by default it is taking “DirectSound”

```
audioDeviceManager.initialise(2, 2, nullptr, true, "", nullptr); // Initialize with 2 input and 2 output channels

```

Here am switching Audio device type to “WIndows Audio” … But device shows nothing… It is null pointer . Am just writing console based application

```
audioDeviceManager.setCurrentAudioDeviceType("Windows Audio", true);

juce::AudioIODevice* device = audioDeviceManager.getCurrentAudioDevice();

```
