| 639 | } |
| 640 | |
| 641 | void |
| 642 | UIMediator::setSampleRate(unsigned int rate) |
| 643 | { |
| 644 | if (this->rate != rate) { |
| 645 | unsigned int bw = rate / 30; |
| 646 | |
| 647 | this->ui->spectrum->setSampleRate(rate); |
| 648 | this->setBandwidth(bw); |
| 649 | |
| 650 | this->rate = rate; |
| 651 | } |
| 652 | } |
| 653 | |
| 654 | void |
| 655 | UIMediator::setState(State state, Suscan::Analyzer *analyzer) |