11-11-2013 10:46 PM
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?
11-18-2013 01:34 PM
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:
Can you add a code snippet that reproduces the problem?
11-18-2013 10:34 PM
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.rate = 44;
_mic.addEventListener(SampleDataEvent.SAMPLE_DATA, onMicSampleData, false, 0, true);
- in the event handler, write to a output file via filestream:
sample = event.data.readFloat();
11-19-2013 09:15 AM