Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
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 |
||||
|
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"); } |
||||
|
I have it working now, but I think the problem is it just doesn't work with Bluetooth headsets. |
|