Hi Max:

doesn't work. No mic.level info if 'capturing=false'. I happen to notice
that I won't get any mic.level information if codec has been changed via

<method name="_makeDevice"><![CDATA[
   var dev = super._makeDevice();
   dev.codec = 'Speex';
   dev.soundTransform = this._sound;
   dev.setUseEchoSuppression(true);
   ]]>
</method>

with or without 'capturing=true'.

So: On my whishlist would be:

mic.SetGain()
mic.SetCodec()

and, of course some mic.level info even if capture is set to 'false'.

Thanks for all help and happy, well, whatever it is you all celebrate :D

mm.


> Hi Michaela,
>
> Can you file an improvement request in http://jira.openlaszlo.org/ so we
> can get this fixed?  In the mean time applying this patch should help:
>
> Index: lps/components/extensions/av/microphone.lzx
> ===================================================================
> --- lps/components/extensions/av/microphone.lzx (revision 16047)
> +++ lps/components/extensions/av/microphone.lzx (working copy)
> @@ -155,7 +155,7 @@
>           <handler name="onactive"><![CDATA[
>               //Debug.write("microphone onactive", this, "onlevel",
> this.onlevel, "active", this.active);
>               if (this.onlevel.ready) {
> -                if (this.active && this.capturing) {
> +                if (this.active) {
>                       this._leveldel.register(lz.Idle, "onidle");
>                   } else {
>                       this._leveldel.unregisterAll();
>
> Let me know how that works for you.
>
> Regards,
> Max Carlson
> OpenLaszlo.org
>
> On 4/1/10 11:01 AM, Michaela Merz wrote:
>>
>> Hello:
>>
>> With the help of Henry Minsky and others, I was able to get my little
>> voicechat app running. Thanks a lot to y'all :)
>>
>> There are still a few questions and I would appreciate some insight from
>> the list:
>>
>> Setting<microphone>  to capture results in a really nasty audio-feedback
>> as the microphone is looped back through the speakers. One doesn't have
>> to
>> set capture to true in order to broadcast audio, it works very well and
>> without loopback if 'capture' is set to 'false'.
>>
>> Unfortunately, I can't get mic.level without activating capture. Is
>> there
>> any way I can eat the cake keep it (e.g. keeping capture=false and still
>> get mic.level?)
>>
>> Thanks,
>>
>> Michaela
>>
>>
>>
>>
>>
>>
>>
>


Reply via email to