<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite"><div style="background-color: rgb(224, 224, 224); font-family: Arial; color: rgb(0, 0, 0); font-size: 10pt; position: static; z-index: auto; " background="" bgcolor="#e0e0e0"><div><font color="#005080" face="Trebuchet MS"><span class="882574813-11052012">I
am using the AudioInputDevice class to stream data from a
microphone. I am using the getPortNames function to return the names of
the microphones connected to the Windows machine so that the user can select the
desired microphone. I have however noticed that the getPortNames function
only returns the devices that belong to the system default audio host
API, which in my case is MME. </span></font></div>
<div><font color="#005080" face="Trebuchet MS"><span class="882574813-11052012"></span></font> </div>
<div><font color="#005080" face="Trebuchet MS"><span class="882574813-11052012">My
questions are </span></font></div>
<div><font color="#005080" face="Trebuchet MS"><span class="882574813-11052012"></span></font> </div>
<div><font color="#005080" face="Trebuchet MS"><span class="882574813-11052012">Can
the getPortNames function return all the audio input irrespective of which audio
host API they belong to? </span></font></div>
<div><font color="#005080" face="Trebuchet MS"><span class="882574813-11052012"></span></font> </div>
<div><font color="#005080" face="Trebuchet MS"><span class="882574813-11052012">and
if so,</span></font></div>
<div><font color="#005080" face="Trebuchet MS"><span class="882574813-11052012"></span></font> </div>
<div><font color="#005080" face="Trebuchet MS"><span class="882574813-11052012">Can
the AudioInputDevice ::createNew function make use of an input that is not
part of the system default audio host API?</span></font></div></div></blockquote><div><br></div></div>Remember, You Have Complete Source Code.<div><br></div><div>"AudioInputDevice" is an abstract base class, implemented by a subclass. You are (I presume) using the "WindowsAudioInputDevice" subclass, whose source code is in the "WindowsAudioInputDevice" directory (and has two possible implementations - one that uses Windows' built-in software 'mixer', and one that doesn't). You can review that code to figure out how it works.</div><div><br></div><div>If you are not happy with either of the current implementations, then you can - if you wish - provide your own. This would be another subclass of "AudioInputDevice" (ideally with a different name than "WindowsAudioInputDevice", to avoid confusion). You would reimplement the "AudioInputDevice::createNew()" function to create an instance of your new subclass, rather than "WindowsAudioInputDevice".</div><br><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">Ross Finlayson<br>Live Networks, Inc.<br><a href="http://www.live555.com/">http://www.live555.com/</a></span></span>
</div>
<br></body></html>