e_yasini 0 Newbie Poster

hi there i want to write a noise cancellation program (no matter c/c++ or c#) an I want to know how could I extract sound waves( I mean phases(?))could any one help me and tells me how should I do this
if you don't know a resource would be enough
thanks in advance