Noise canceling OK in c++