≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
createIrrKlangDevice() picking default device when deviceID specified
Posted by:
(you are not logged in)
Enter the missing letter in: "Internationa?"
(you are not logged in)
Text:
[quote][b]kindyre[/b] wrote: Hi, I'm working on a piece of software that runs on a system with multiple sound cards. Each sound card is used and represents something, so it is important that sounds we play to SoundCardA play to - and only to - that particular sound card. If it is unhooked or disabled the sounds should not play at all. Sounds meant for SoundCardA should never play to SoundCardB. We've implemented this by passing a specific GUID as the deviceID parameter when calling irrklang::createIrrKlangDevice(...). Our expectation was that if createIrrKlangDevice() fails to find a device with the GUID we told it to use, it would fail. Probably by returning a nullptr, since the documentation says: [quote]Returns pointer to the created irrKlang device [b]or null if the device could not be created[/b].[/quote] But, instead, it just silently picks the default playback device. There doesn't seem to be a way to detect that this has happened either. createIrrKlangDevice() returns a valid ISoundEngine pointer. ISoundEngine itself has a getDriverName() method, but no getDeviceID() method or anything that could be used to identify it. The only solution I can think of is mucking around with SInternalAudioInterface... but I'd really rather not have to resort to that. Am I just missing something obvious? Is there a way to force createIrrKlangDevice() to honour the deviceID parameter? Or to detect that it has picked a different device?[/quote]
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