Creating a Sound Recorder in C and C#