Tony_P wrote:
Well I was trying to write a MP3 player I could easily port to the Nintendo DS by going very low level (ie: fwrite to the sound card). But well, if can't speak directly with the sound device I guess this isn't going to work.
Anything like an "fwrite to the sound card" just plain isn't going to work. Sound cards, like graphics cards, require data to be passed in the right way, and to the right buffer addresses etc, which is why there are drivers and APIs to help you do this. I'm a game audio programmer, working on PC at the moment, but I've written systems for most consoles in the past - unfortunately not for the DS, so I can't give you specific advice, but it too will have a specific API which is how you should send the audio data and control information to the hardware. In fact a quick google turns up lots of hits for DS homebrew audio (e.g. here) and the interface looks pretty simple. You should be able to get sounds up and running reasonably quickly using that.
There are three kinds of people in the world - those who can count and those who can't...