Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > irrKlang
Change audio output to either: speakers or headsets? Possible?

netmanu82
Registered User
Quote
2020-08-05 15:43:24

Hi,

I'm new here. I searched the forum but couldn't find any related topic to my question.

Okay, I'm able to play sounds without problems, however, what if I would like to change the audio output from the PC's speakers to only the headsets?....I tried switching audio device output as mentioned in the following thread:

Change Audio Output Device:
https://www.ambiera.com/forum.php?t=1343

I can switch between my Graphic card's HDMI audio output, and works fine, and then I can change it to my PC speakers, this is working fine,...the sound plays in both my speakers and headsets (no USB plug, both...speakers and headsets uses normal audio plug).......but I would like to be able to allow the user to either choose between...playing sounds only over the speakers...or only by the headsets.....can this be possible?

Cheers,

Manuel


guppy
Guest
Quote
2020-08-05 17:34:47

Further to what Manuel said (I'm using the same code as Manuel), when I select the Microsoft USB headset from the audio device drop down list in my app, the sound just doesn't want to play out of my headset.

It works fine with my speakers though?

Do you see what's wrong?


private void cbAudioDevices_SelectedIndexChanged(object sender, EventArgs e)
{
// If the user has made an audio device selection then
if (cbAudioDevices.SelectedIndex >= 0)
{
// Change the OUTPUT audio device to the selected by the user from the combobox
CCommsRadio.engine = new ISoundEngine(SoundOutputDriver.AutoDetect,
SoundEngineOptionFlag.DefaultOptions,
auDevicesLst.getDeviceID(cbAudioDevices.SelectedIndex));

}
}


// On *PLAY TEST SOUND* button pressed
private void btnPlayTestSound_Click(object sender, EventArgs e)
{
// Play the specified sound file
CCommsRadio.engine.Play2D("audio/misc/honk.wav");
}


guppy
Guest
Quote
2020-08-07 10:05:29

I have it working now, but I think the problem is it just doesn't work with Bluetooth headsets.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "In?ernational" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact