gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > Blowing in the microphone

#173367 - PolecatIV - Fri Apr 02, 2010 9:16 pm

Hi there! I'm new here and I'm going crazy to get the value of how much the user is blowing in the mic of the NDS. I saw a couple of threads but they was quite old (2 years), maybe now is there a cleaner solution to get this value without touching the IPC structure like PlagueSpark did here?

thanks so muuuch!

#173370 - 0xtob - Fri Apr 02, 2010 11:25 pm

There's an example of how to record from the Mic in the nds examples from devkitpro. One you recorded a sample, you could try experimenting with some simple measures. I guess taking the sum of absolute sample values in a fixed timeframe will give you an OK estimate.
_________________
http://blog.dev-scene.com/0xtob | http://nitrotracker.tobw.net | http://dsmi.tobw.net