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 > Live Mic Streaming HELP

#148971 - jay001 - Sat Jan 12, 2008 9:46 pm

i have been trying for hours now, and still cant figure out how to make the mic record and playback at the same time.
this is for my car, as i have a AUX input on my stereo i can plug my DS into it and use it as a PA system :D

please help. TIA

#148978 - DragonMinded - Sun Jan 13, 2008 12:16 am

This should be relatively easy. Set up a dual timer system much like any other music playing code, but use it for the mic and the speakers at once. On the faster timer, you should be firing a record event and filling the current back buffer. On the slower timer, you should be firing a swap so that you play back the just recorded sample, and giving the mic a new bank to record to. This is very similar to double buffering video, and should be doable on the arm7 by itself.
_________________
Enter the mind of the dragon.

http://dragonminded.blogspot.com

Seriously guys, how hard is it to simply TRY something yourself?