public void Write(AudioBuffer buff)
 {
     try
     {
         wrt.Write(buff);
     }
     catch (IOException ex)
     {
         if (_encoderProcess.HasExited)
         {
             throw new IOException(string.Format("{0} has exited prematurely with code {1}", m_settings.Path, _encoderProcess.ExitCode), ex);
         }
         else
         {
             throw ex;
         }
     }
     //_sampleLen += sampleCount;
 }