~ubuntu-branches/ubuntu/quantal/linpsk/quantal

« back to all changes in this revision

Viewing changes to linpsk/cmodulator.h

  • Committer: Bazaar Package Importer
  • Author(s): Bruce Walker
  • Date: 2002-02-06 11:43:38 UTC
  • Revision ID: james.westby@ubuntu.com-20020206114338-xqmjmhh01lpjm0g4
Tags: upstream-0.6.2
ImportĀ upstreamĀ versionĀ 0.6.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
                          cmodulator.h  -  description
 
3
                             -------------------
 
4
    begin                : Mon Aug 20 2001
 
5
    copyright            : (C) 2001 by Volker Schroer
 
6
    email                : dl1ksv@gmx.de
 
7
 ***************************************************************************/
 
8
 
 
9
/***************************************************************************
 
10
 *                                                                         *
 
11
 *   This program is free software; you can redistribute it and/or modify  *
 
12
 *   it under the terms of the GNU General Public License as published by  *
 
13
 *   the Free Software Foundation; either version 2 of the License, or     *
 
14
 *   (at your option) any later version.                                   *
 
15
 ***************************************************************************/
 
16
 
 
17
#ifndef CMODULATOR_H
 
18
#define CMODULATOR_H
 
19
 
 
20
#include <qobject.h>
 
21
#include "parameter.h"
 
22
#include "ctxdisplay.h"
 
23
 
 
24
/**Base Class for all possible transmit types
 
25
  *@author Volker Schroer
 
26
  */
 
27
 
 
28
 
 
29
class CModulator : public QObject
 
30
{
 
31
Q_OBJECT
 
32
public: 
 
33
        CModulator(int FS,CTxdisplay *);
 
34
        ~CModulator();
 
35
 
 
36
/** Calculate the Signal to be fed into the soundcard */
 
37
        virtual unsigned int CalcSignal(double *data,int BufferSize) = 0;
 
38
/** data Pointer to the computed signal values
 
39
    Size of Buffer for the computed signal
 
40
                returns Number of computed signal values */
 
41
 
 
42
protected: // Protected attributes
 
43
  /** Samplerate of Soundcard */
 
44
  int SampleRate;
 
45
        CTxdisplay *tx;
 
46
 
 
47
        Mode PSKMode;
 
48
 
 
49
public slots:
 
50
        void setMode(Mode);
 
51
signals:
 
52
void charSend(char);
 
53
void finished();
 
54
 
 
55
};
 
56
 
 
57
#endif