Spencer;<br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Now why would you ever want to open a device by name if it wasn&#39;t connected to your system? :)<br>
<br></blockquote><div><br>Easy!<br>hi.open(&quot;Crackin DJ Console&quot;);<br><br>It&#39;s not connected to my system, in fact I don&#39;t think there even is on in the whole of the Netherlands, but I&#39;d still really like to have one attached and open it.<br>
<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thanks for the bug report.  Should be an easy fix.<br><br></blockquote><div><br>Looks like it, yes. <br><br>Some notes; It&#39;s not clear what we would do if we&#39;d have multiple identical devices attached, that we&#39;d still like to open by name for readability and because there might also be other devices of the same type. Let&#39;s say (purely hypothetically, of course) two identical toy turntables and a joystick. Could we overload this to .open(string name, int id) for such cases?<br>
<br>I hadn&#39;t realised we had this until I went over VERSIONS just tonight and realised I had been implementing this exact functionality for the MIDI objects by incrementing id and repeatedly opening the device until the .name() matched the string I was looking for. Could we also get this for the MIDI abstractions?<br>
<br>I know that at least Windows will swap the device order around when I boot without the external soundcard attached; it&#39;ll move it&#39;s internal GM synth to the top of the list (to not default to a unavailable device) but it doesn&#39;t move it back after I re-attach the card. Hence; I implemented basically this for the MIDI devices (so Windows can swap stuff around if it feels the need),  I think .name(string) would make sense there too.<br>
<br>Thanks,<br>Kas.<br></div></div>