/** * Saves calculated feature to a writer object (usually to file). * * @param writer non-const reference to a writer object */ public bool Save(FeatureWriter writer) { FeatureHeader hdr = new FeatureHeader(); hdr.type = type; hdr.frameLength = m_frameLength; hdr.paramsPerFrame = m_paramsPerFrame; hdr.wavFilename = wavFilename; hdr.timestamp = DateTime.Now; return(writer.Write(hdr, featureArray)); }
/** * Saves calculated feature to a writer object (usually to file). * * @param writer non-const reference to a writer object */ public bool Save(FeatureWriter writer) { FeatureHeader hdr = new FeatureHeader(); hdr.type = type; hdr.frameLength = m_frameLength; hdr.paramsPerFrame = m_paramsPerFrame; hdr.wavFilename = wavFilename; hdr.timestamp = DateTime.Now; return writer.Write(hdr, featureArray); }