Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
All, Is there a way to programatically change the audio device the program is using to play music? Thanks, Aaron |
||||
|
You can enumerate the audio devices in your system by using the createSoundDeviceList(); function in Cplusplus. On the first page of the documentation, there is a sample 'Enumerating sound devices'. If you are using .NET, this works similar there. |
||||
|
You rock! The sound change was easy enough to change. Thanks for the help! p.s. -> Next time I will check the doc before bothering you! |
||||
|
hi there, may i ask 1, 2 or 3 beginner-question? I use the irrKlang.NET4.dll from irrKlang-64bit-1.6.0 with VS2012 oin Windows 10. I like to build a C-Windows-Form as a stand alone "exe" file. This file shall have a button that play a sound (selectable from a folder). Output this mp3-file to a select-able output (i read the demofile, but it does not work here). So i add a combobox1 and copy&past ur code there. if i run the project and click the box, it is empty. My code for c: ( i need to add a "var" in front of "sdl" because otherwise i got a error, like "name is not in actual context" ( or something like this)
the drop-down stays empty. --- 2nd: how do i tell the Play2d-Engine what output to use? --- 3rd: if i press the button tp play the mp3file, i get a error in the program: BadImageFormatException (wrong format was try to load) In the Projectpropertiypage i selected x86 as targetplatform, but in the top is "active (any cpu)" - and i cant change this. how to get rid of this and the warning about a konflic between architecture x86 and AMD64 of IrrKlang.net4 (all german, difficult to translate this errormessages and warnigs.) -- Thank You. If i ask to much or on the wrong forum, please move this to the right target. |
||||
|
OK, seems i need to build a instanz of ISoundEngine witth the given parameter to the device. Are there any c-sharp-examples? |
||||
|
I think you are filling in only when something changed, right? Examples: Yes, in the examples.NET folder, or here: https://www.ambiera.com/irrklang... |
||||
|
sorry, can't find any example to use a special output-device. There are Only some cpp examples at https://www.ambiera.com/irrklang/docu/index.htmlenumeratingDevices i like to know how to create a "engine" with a given output in csharp. (please remember, ima beginner....) |
||||
|
You can do it like this: IrrKlang.ISoundDeviceList list = new IrrKlang.ISoundDeviceList(IrrKlang.SoundDeviceListType.PlaybackDevice); |
|