I am using an API called which should allow me to do what I want but I am not being able to find how. If (defaultPlaybackDevice.FullName = COLUNA) The volume part is already complete but I'm not being able to change between the two output devices (monitor audio and Headphones). If (defaultPlaybackDevice.FullName = PHONES) I made a small gadget with an Arduino that sends 2 values via serial to my c program (potentiometer value for volume and switch button to change output device). You go to Settings and then to Sound Settings and here you can choose the input and output devices for the sound. Label6.Text = defaultPlaybackDevice.FullName ÄefaultPlaybackDevice.Volume = Int32.Parse(tokens) One minor annoyance I encounter with Ubuntu is when I have to switch the audio output source. Private void timer1_Tick(object sender, EventArgs e) Private void serialPort1_DataReceived(object sender, System.IO.Ports.SerialDataReceivedEventArgs e) README Frameworks Dependencies Used By Versions Release Notes. >false . NuGet\Install-Package AudioSwitcher.AudioApi -Version 3.0.0 This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.Is intended to be used across Windows/Windows RT/Windows Phone. AudioSwitcher.AudioApi.3.0.0.nupkg nuget. open port for serial msg and start timmer An abstracted set of classes that can be extended to interact with any audio system. String COLUNA = "ASUS VP228-4 (NVIDIA High Definition Audio)" String PHONES = "Headphones (Razer Kraken USB)" My code at the moment: using ĬoreAudioDevice defaultPlaybackDevice = new CoreAudioController().DefaultPlaybackDevice Audio Output Switcher has had 0 updates within the past 6 months. I made a small gadget with an Arduino that sends 2 values via serial to my c# program (potentiometer value for volume and switch button to change output device). Download Audio Output Switcher for Windows to switch between audio playback devices seamlessly.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |