Ejemplo n.º 1
0
        /**
         * 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));
        }
Ejemplo n.º 2
0
		/**
		 * 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);
		}