CString CVqf::GetFormatString() { CString strFormat; if(!m_bEnable) { //「不明」 //strFormat.LoadString(IDS_UNKNOWN); return strFormat; } strFormat.Format("TwinVQ %s, %dkHz, %dkbps, %s", GetVer(), GetSamplFreq(), GetRate(), (GetStereo()&0x03)?"Stereo":"Mono" ); return strFormat; }
void Offset_Measurement_On(void) { /*DAC DMA request disable to measure the dark detector output*/ DAC_DMACmd(DAC_Channel_1, DISABLE); /*MHP Off*/ DAC_SetChannel1Data(DAC_Align_12b_R, 0); /*DMA2 interrupt will not disable ADC3 because triggering is not needed for offset measurement*/ offset_meas = 1; /*ADC3 is ENABLED because triggering from the DAC output is not needed*/ //ADC_Cmd(ADC3, ENABLE); ADC_DMACmd(ADC3, ENABLE); old_sampl_freq = GetSamplFreq(); /*4000 samples per second: we need to wait 0.25 seconds to fill the 1000 elements buffer*/ SetSamplFreq(4000); }