audio output on specific device

Recommended Posts

level20peon 2

level20peon 2

Is it possible to use AutoIt for sending a "keepalive" audio signal to a specific playback device ? I am trying to send a very short white noise every n minutes to a wireless headset to prevent it from entering standby-mode automatically. The headset is not set as default playback device in Windows, so I cannot just playback the white noise "undirected".

So there are two things I need to accomplish for this to work:

1) make AutoIt playback a sound

2) direct this sound to a specific audio device

Any pointers ?

Share this post

Link to post

Share on other sites

mv2112 0

mv2112 0

Is it possible to use AutoIt for sending a "keepalive" audio signal to a specific playback device ? I am trying to send a very short white noise every n minutes to a wireless headset to prevent it from entering standby-mode automatically. The headset is not set as default playback device in Windows, so I cannot just playback the white noise "undirected".

So there are two things I need to accomplish for this to work:

1) make AutoIt playback a sound

2) direct this sound to a specific audio device

Any pointers ?

You will probably have to do this through DLL calls. I don't see any native AutoIT functions for this...

Share this post

Link to post

Share on other sites

level20peon 2

level20peon 2

Thanks for your suggestions. However, I don't want to switch audio devices! I want to keep the default device in place and just output a short sound through the non-default device. I know that this is possible in general, I just don't know how / if this is possible in AutoIt. My workaround for now is to run an audio player hidden which supports selective output, play the sound and close it thereafter. This is everything but elegant so I hoped there would be a better solution.