≡
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: "Internation?l"
(you are not logged in)
Text:
[quote][b][/b] wrote: That's really simple and will work fine, thank you! Hadn't even occurred to me, since we have a list of GUIDs ready to go already. --- This particular case aside, I think it's worth considering changing createIrrKlangDevice() to return null if a deviceID is supplied but doesn't exist. The way it is right now is a bit counter-intuitive. After all, when you call createIrrKlangDevice(..., ..., THIS_DEVICE_GUID); you're telling irrKlang: [quote]Hey, irrKlang! Give me an ISoundEngine that plays to [b]THIS[/b] device![/quote] And irrKlang turns around, hands you an ISoundEngine, and goes: [quote]OK! Here you go! *devil*[/quote] ... but the ISoundEngine it just handed you doesn't play to THIS device. It plays to [b]THAT[/b] device instead. And it's not even labelled, so you think you have the right one. Even if you call createSoundDeviceList() just before, you could imagine a scenario where the device gets disconnected or becomes invalid just after that call and just before the createIrrKlangDevice() call. It's very unlikely, assuming you do one right after the other, but it can happen. There should be a way to make sure you have the right device, no? Anyway, just a suggestion for future versions. Your idea will work fine for our purposes. Thanks again![/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