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 > mic problem

#111472 - ProblemBaby - Wed Dec 06, 2006 9:06 pm

Iam trying to record the microphone and play it immediatly (well one frames latency, it sounds crap, I think the recorded stuff isnt synced with the channel. so my question is how do I sync the microphone fetch interrupt to an audio channel playing.

thanks

#111560 - jenswa - Thu Dec 07, 2006 6:43 pm

Well I can't tell if it's possible, but isn't it possible that it sounds crap because of the fact you're recording and playing on the same time?

In mean this in fact: record voice + play recorded voice + record play recorded voice + ... you might get the idea, doesn't it give some sort of distortion?

Just like when calling to the radio station (being live in the program) and speaking over the phone while your radio is on with the same program?
_________________
It seems this wasn't lost after all.

#111620 - ProblemBaby - Fri Dec 08, 2006 2:01 pm

Ive set up a buffer of 1024 samples. Play it as looping and start from the beginning of the buffer, and I start to record at the middle of the buffer, but somethings goes to fast/slow!


if I set my microphone interrupt timer to: 0xF800 (16khz)
and play my sample at 0xFC00, isnt that supposed to be exact the same speed?