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

Native Development

Reply
Contributor
Posts: 12
Registered: ‎07-06-2013
My Device: Q10
My Carrier: Indosat

Detecting input sound level from microphone

[ Edited ]

Hello,

 

I'm currently porting platform-specific codes of my Cocos2D-X game to BB10 that was previously built only for Android and there's one part in my game that uses android.media.MediaRecorder through JNI to detect the input sound level from microphone so it'll invoke something in my game once the sound level reaches a certain point.

 

I used this code to achieve it in android: https://code.google.com/p/android-labs/source/browse/trunk/NoiseAlert/src/com/google/android/noiseal...

 

How to do the same thing in BB10? Which part of the API to use?

 

Here is a reference to android.media.MediaRecorder: http://developer.android.com/reference/android/media/MediaRecorder.html

 

Thanks.

Contributor
Posts: 12
Registered: ‎07-06-2013
My Device: Q10
My Carrier: Indosat

Re: Detecting input sound level from microphone

Anyone?

New Contributor
Posts: 4
Registered: ‎07-10-2013
My Device: Alpha C, Playbook
My Carrier: Digitel

Re: Detecting input sound level from microphone