Logo Search packages:      
Sourcecode: hamfax version File versions  Download package

void FaxModulator::init ( int  sampleRate  ) 

Initialize everything to get ready for transmission.

Parameters:
sampleRate sets the sample rate for the transmission

Definition at line 31 of file FaxModulator.cpp.

References Config::instance().

{
      Config& config=Config::instance();
      carrier=config.readNumEntry("/hamfax/modulation/carrier");
      dev=config.readNumEntry("/hamfax/modulation/deviation");
      fm=config.readBoolEntry("/hamfax/modulation/FM");
      this->sampleRate=sampleRate;
      sine.reset();
      if(!fm) {
            sine.setIncrement(sine.size()*carrier/sampleRate);
      }
}


Generated by  Doxygen 1.6.0   Back to index