kwave  18.07.70
RecordParams.h
Go to the documentation of this file.
1 /*************************************************************************
2  RecordParams.h - holds parameters of the record plugin
3  -------------------
4  begin : Thu Sep 04 2003
5  copyright : (C) 2003 by Thomas Eschenbacher
6  email : Thomas.Eschenbacher@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 
18 #ifndef RECORD_PARAMS_H
19 #define RECORD_PARAMS_H
20 
21 #include "config.h"
22 
23 #include <QDateTime>
24 #include <QString>
25 #include <QStringList>
26 
27 #include "libkwave/Compression.h"
28 #include "libkwave/SampleFormat.h"
29 
30 namespace Kwave
31 {
32 
37  typedef enum {
46 
49  return (m = (m < Kwave::RECORD_INVALID) ?
50  static_cast<Kwave::record_method_t>(
51  static_cast<int>(m) + 1) : m);
52  }
53 
55  {
56 
57  public:
58 
60  RecordParams();
61 
63  virtual ~RecordParams();
64 
70  virtual int fromList(const QStringList &list);
71 
73  virtual QStringList toList() const;
74 
78  unsigned int pre_record_time;
81  unsigned int record_time;
84  QDateTime start_time;
87  unsigned int record_trigger;
92  bool agc_enabled;
93  unsigned int agc_decay;
96  unsigned int fade_in_time;
99  unsigned int fade_out_time;
101  QString device_name;
102  unsigned int tracks;
103  double sample_rate;
105  unsigned int bits_per_sample;
108  unsigned int buffer_count;
109  unsigned int buffer_size;
110  };
111 }
112 
113 #endif /* RECORD_PARAMS_H */
114 
115 //***************************************************************************
116 //***************************************************************************
unsigned int bits_per_sample
Definition: RecordParams.h:105
Definition: App.h:33
unsigned int fade_in_time
Definition: RecordParams.h:96
unsigned int pre_record_time
Definition: RecordParams.h:78
unsigned int fade_out_time
Definition: RecordParams.h:99
record_method_t
Definition: RecordParams.h:37
unsigned int record_time
Definition: RecordParams.h:81
unsigned int record_trigger
Definition: RecordParams.h:87
unsigned int tracks
Definition: RecordParams.h:102
unsigned int agc_decay
Definition: RecordParams.h:93
static FileProperty operator++(FileProperty &prop)
Definition: FileInfo.h:104
Kwave::SampleFormat::Format sample_format
Definition: RecordParams.h:106
QDateTime start_time
Definition: RecordParams.h:84
Kwave::record_method_t method
Definition: RecordParams.h:75
Kwave::Compression::Type compression
Definition: RecordParams.h:104
unsigned int buffer_count
Definition: RecordParams.h:108
virtual int fromList(const QStringList &list)
virtual QStringList toList() const
unsigned int buffer_size
Definition: RecordParams.h:109