1
/***************************************************************************
5
copyright : (C) 2001 by Volker Schroer
7
***************************************************************************/
9
/***************************************************************************
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
* based on the work of Moe Wheatley, AE4JY *
16
***************************************************************************/
23
#include <sys/ioctl.h>
27
/**Abstract base class for the different input devices like soundcard, textfile, Wavfile
28
*@author Volker Schroer
36
/** Opens the Device named Device for reading */
37
virtual bool open_Device_read(QString Device);
39
/** Opens the Device named Device for writing */
40
virtual bool open_Device_write(QString Device) = 0;
42
/** Closes the open Device */
43
virtual bool close_Device() ;
45
/** Tries to read anzahl samples and returns the nuber of read samples */
46
virtual int getSamples(double *sample,int anzahl) = 0;
48
/** Tries to write anzahl samples and returns the nuber of written samples */
49
virtual int putSamples(double *sample,int anzahl) = 0;
52
virtual void PTT(bool mode) = 0;
54
/** Sets the neede Parameters and returns an Errorstring if unsuccessfull */
55
virtual bool setParams(QString *errorstring) = 0;
59
/** Filedescriptor of Input/Output Device */
62
/** Filedescriptor of PTT- Device */