<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@SimSun";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-AU link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Jesus<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I think being able to select the Audio device within Rat would
be useful.&nbsp; (I will let the developers comment on this one)&#8230;<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>But, there is a work around&#8230;&nbsp; If you select the device in rat
that you want, and click on the &#8220;Quit&#8221; button on rat (which will close the
application down), it will actually save the device you selected and will use
this device for now on.&nbsp; Therefore, if you change the device or any preference
settings, by manually &#8220;Quiting&#8221; rat, these changes will be saved.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I hope this helps.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Cheers,<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Jason.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>

<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> ag-tech-bounces@lists.mcs.anl.gov
[mailto:ag-tech-bounces@lists.mcs.anl.gov] <b>On Behalf Of </b>Jesus Cea Oliva<br>
<b>Sent:</b> Wednesday, 2 June 2010 02:01 AM<br>
<b>To:</b> ag-tech@mcs.anl.gov<br>
<b>Subject:</b> [AG-TECH] Is possible modify AudioService to Select an audio
device?<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p>Hi, list. Today, I found a interesting &quot;need&quot;. We have installed a
Access Grid client on a normal machine where the audio is a external
multifunctional microphone (concretly, a Yamaha PJP-25EUR:&nbsp;<a
href="http://www.gizmos.es/1828/audio-portatil/yamaha-pjp-25ur-microfono-multidireccional/">http://www.gizmos.es/1828/audio-portatil/yamaha-pjp-25ur-microfono-multidireccional/</a>),
this has a speaker and a set of microphones and, usualy, it is used for
Meetings Venues, etc.<o:p></o:p></p>

<p>Audio on Access Grid, works fine, but, I have to modify RAT to select the
audio device (in audio tab), because, by default, the audio device selected is
the sound card. On audio tab, I can select the default audio device to use on
RAT... so, I think that is interesting add an aditional option to AudioService
to select the audio device prefered.<o:p></o:p></p>

<p>I already modify the AudioService code tu add a new option, adding to the
end of __init__ function the next lines:<o:p></o:p></p>

<p>self.audioDevice = OptionSetParameter( &quot;Audio device:&quot;,
audioDefault, self.listAudio)<br>
self.configuration.append(self.audioDevice)<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p>Where, self.listAudio is a list where I want to store the differents audio
devices that has the system. And here is my doubt, how can I obtain the audio
devices installed on my system, like RAT show me? I thought to modify RAT to
permit storage the configuration, or see the code to see how RAT does it, but I
think that RAT is a compiled program (C or C++), right? I saw the &quot;aplay
-L&quot; and &quot;aplay -l&quot; commands, but I don't know if with this
commands I can do something (I don't, for example, if RAT detect the audio
names that this commands show me).<o:p></o:p></p>

<p>I know that I can modify the .RATdefault file to&nbsp;permanently save the
configuration.&nbsp;&nbsp;But I think that I'm going to see this in the future
and I thought that is interesting save the config with AudioService like Gains,
etc.&nbsp;I add this lines too on AudioService.py on WriteRatDefaults function:<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p>ratDefaults[&quot;*audioDevice&quot;] = str(self.audioDevice.value )<o:p></o:p></p>

<p>To save, the selected audio in AudioService window, to the .RATdefault file.<o:p></o:p></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><br>
<br>
<o:p></o:p></p>

<p>Sorry, as usual, for my bad English.<o:p></o:p></p>

<p>Thanks and Regards!<o:p></o:p></p>

</div>

</body>

</html>