Jump to content

PlaySound to a specific device?


Recommended Posts

Hello Guys, need your help.

I want to play short warning-sounds to a specific not default device.  Unfortunately SoundPlay() outputs sound to default device only. I imagine it could be possible to specify output devices via bass.dll functions or some other dll calls. I just need an example.

---------------------------------

example:

example_SoundPlay("example.mp3", "output = virtual cable line 1")

---------------------------------

Thank You

Link to comment
Share on other sites

Would changing the Default Device before using SoundPlay() be out of the question? I use NirCMD to change the default device all the time because I use multiple headsets on my pc. You could always change the default device back after the sound is played. Unfortunately I do not know how to play audio on non-default devices. 

 

 

Link to comment
Share on other sites

  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...