Sound Level frome microphone

Hi,

I found on the web some codes about the topic but they don’t work on Corona SDK.

enyone have idea hot ot run these codes.

[lua] local displayGroup = display.newGroup() local r = media.newRecording( filePath ) local decibelText = display.newText( displayGroup, "00.000", 180, 100, native.systemFontBold, 56 ) local updateStatus = function() local v = r:getTunerVolume() local t = system.getTimer() local vdb = 10 \* math.log( v ) decibelText.text = tostring( vdb ) end r:start() r:startRecording() Runtime:addEventListener( "enterFrame", updateStatus ) [lua]

Cheers

Fabrizio