Control default sound device
-
Hey,
i wonder if there is any qt that allows you to get the current default sound device and to change it.
I searched for that but i only found some crazy c++ workarounds. Those start the window and navigate through the window by sending inputs to it.
Since Qt is a really powerful library i hope there is a class that gives me all sound devices and can switch the default one.
-
Hi,
To get the default device: QAudioDeviceInfo.
To change it at OS level is outside of Qt's scope. -
yeah i found that. But i want to change the default device (speakers/headset)
I hoped i can get the current default device that way. But defaultOutputDevice().deviceName() returns: "Default output device" instead of it's real name...
-
That's the name Qt receives from the OS.
-
@SGaist then the os is stupid ;)
Any ideas if there is a windows api that allows you to change the default device??
And (other "problem") is it possible to record from Outputdevice1 and send everything to micro 1??
-
@QT-static-prgm You want record from an output device and send it to an input device?
-
@jsulm yeah :D Teamspeak: Headset, music: speaker. And if i start the program the music should be passed to the teamspeak micro. There are a few plugins but those need music files and if you are streaming the music, you don't have the mp3 files
-
@QT-static-prgm I don't think you can pass anything to a microphone as it is an input device, not output.