Wednesday, May 9, 2007

Playback And Recording

So I've been doing some work on playback and recording today. I had a look at c# and the .NET framework, however in order to get sound recording working you have to either use the weird microsoft windows sound library, or directX directsound. Once setting those up, it's *mountains* of code to get the actual thing working.

Too much.

There had to be a simpler implmentation.

And there is!

I went back to Processing and looked at the ESS sound library. Success! I quickly whipped up two programs. One plays a .wav file from a selected directory. The other, Records input from the microphone and saves it to the hdd as a .wav file.
Now the only problem with this, is that when recording, the microphone input is echo-ed through the speakers. I'm sure there's a way to stop this, so I'll figure this out when I next work on the project ( probably tommorrow or friday ).

Thankyou processing! you're awesome.

- Anthony

No comments: