Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Adobe AIR Development

Reply
Highlighted
New Contributor
Posts: 6
Registered: ‎10-19-2013
My Device: Z10
My Carrier: n/a

Noise with sound captured via microphone in Software Release 10.2.x

Hi,

 

I am working on a bb10 app using AIR.  It uses the as3 Microphone class to capture sound data via the internal microphone.  It has been working perfectly fine (clean sound) up to 10.1.0.4181.  However, once I upgraded the Software Release to 10.2.0.424, I noticed some noise in the captured sound data.  The noise is like "blark....blark blark blark.....blark....".  It is intermittent but very obvious and anonying.


I checked the AIR log and there were no related exceptions.

 

Anyone experiencing the same, or has any idea to this issue?

 

Many thanks!

Retired
Posts: 1,382
Registered: ‎07-02-2009
My Device: BlackBerry Bold 9900
My Carrier: Bell

Re: Noise with sound captured via microphone in Software Release 10.2.x

I have not yet heard of this problem on 10.2.0.424.

 

I've opened this JIRA issue to see if I can get some more info for you:

https://www.blackberry.com/jira/browse/BBTEN-1944

 

 

 

Can you add a code snippet that reproduces the problem?

Follow me on Twitter: @n_adam_stanley
-------------------------------------------------------------------------------------------------------------------------
Your app doesn't work? Use BlackBerry remote web inspector to find out why.
New Contributor
Posts: 6
Registered: ‎10-19-2013
My Device: Z10
My Carrier: n/a

Re: Noise with sound captured via microphone in Software Release 10.2.x

Here's the code snippet:


 

- setup microphone object and add event listener for SampleDataEvent.SAMPLE_DATA

 

            var _mic:Microphone = Microphone.getMicrophone(0);
            var _fs:FileStream = [create a file and return its filestream reference]
            _mic.setSilenceLevel(0);
            _mic.setLoopBack(false);
            _mic.setUseEchoSuppression(false);
            _mic.rate = 44;
            _mic.addEventListener(SampleDataEvent.SAMPLE_DATA, onMicSampleData, false, 0, true);

 

 

 

- in the event handler, write to a output file via filestream:

 

            while(event.data.bytesAvailable)
            {
                var sample:Number;
                sample = event.data.readFloat();
                _fs.writeFloat(sample);

            }

 

Retired
Posts: 1,382
Registered: ‎07-02-2009
My Device: BlackBerry Bold 9900
My Carrier: Bell

Re: Noise with sound captured via microphone in Software Release 10.2.x

Thanks, I'll add that to the JIRA.

Follow me on Twitter: @n_adam_stanley
-------------------------------------------------------------------------------------------------------------------------
Your app doesn't work? Use BlackBerry remote web inspector to find out why.