public void save(Stream destStream) { if (File.Exists(tempFilePath)) { using (Stream sourceStream = File.Open(tempFilePath, FileMode.Open, FileAccess.Read)) { using (OggEncoder oggEncoder = new OggEncoder()) { oggEncoder.encodeToStream(sourceStream, destStream); } } } else { throw new FileNotFoundException("Cannot find temporary audio file {0}", tempFilePath); } }