void nist2nist(string src_file, string dst_file) { nist obj = new nist(); obj.LoadData(src_file); obj.SaveData(dst_file); }
public nist GetNist() { nist obj = new nist(); obj.data = this.data; //obj.sample_count = data_len / 2; return(obj); }
void pcm2nist(string pcm_file, string nist_file) { pcm obj = new pcm(); obj.LoadData(pcm_file); nist obj_nist = obj.GetNist(); obj_nist.SaveData(nist_file); }
void wav2nist(string wav_file, string nist_file) { wav obj = new wav(); obj.LoadData(wav_file); nist obj_nist = obj.GetNist(); obj_nist.SaveData(nist_file); }
/// <summary> /// 得到nist对象 /// </summary> /// <returns></returns> public nist GetNist() { nist obj = new nist(); obj.sample_coding = "pcm"; obj.sample_rate = this.frm_sample_rate; obj.channel_count = this.frm_channel_count; obj.sample_n_bytes = this.frm_Bpu; obj.sample_sig_bits = this.frm_bpu; obj.sample_count = this.data_len / obj.sample_n_bytes; obj.data = this.data; return(obj); }