#include ".\spectrum.h" CSpectrum::CSpectrum(void) { } CSpectrum::~CSpectrum(void) { } int CSpectrum::PosToChannel(double pos) { int ipos = int(pos + 0.5); return (PosToChannel(ipos)); } int CSpectrum::PosToChannel(int pos) { int res = (pos >> (MAX_GAIN_INDEX - m_attr.gainIndex)); return res; }