Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > irrKlang
createIrrKlangDevice in .net?

maclean525
Registered User
Quote
2013-04-01 18:15:45

Hello!

I am trying to use irrKlang in a .net project. It's working wonderfully so far but I am at a road block. My application cannot use the default sound device, it is designed to play sounds to a USB headset that the user has plugged in. I cannot set this headset as my system default.

I see in the C++ API the method createIrrKlangDevice which takes a device id that is gathered from iSoundDeviceList.

In the .net API the iSoundDeviceList exists and I can grab the associated device id but I cannot find a way to actually set the device to be used via the .net API.

Can anyone help with this?

THANKS!


niko
Moderator
Quote
2013-04-01 21:48:14

There is a constructor for the ISoundEngine which takes a third parameter, the device id:

public ISoundEngine(
SoundOutputDriver driver,
SoundEngineOptionFlag options,
string deviceID
);


Try that one :)


maclean525
Registered User
Quote
2013-04-01 22:22:29

Ah ha!

I like the easy solutions. Thanks for the quick response!


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Intern?tional" (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