kwave  18.07.70
PlayBackParam.h
Go to the documentation of this file.
1 /***************************************************************************
2  PlayBackParam.h - class with parameters for playback
3  -------------------
4  begin : Tue May 15 2001
5  copyright : (C) 2001 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 PLAY_BACK_PARAM_H
19 #define PLAY_BACK_PARAM_H
20 
21 #include <QtGlobal>
22 #include <QString>
23 
24 namespace Kwave
25 {
26 
31  typedef enum {
40 
43  return (m = (m < Kwave::PLAYBACK_INVALID) ?
44  static_cast<Kwave::playback_method_t>(static_cast<int>(m) + 1) : m);
45  }
46 
51  class Q_DECL_EXPORT PlayBackParam
52  {
53  public:
56  :rate(44100), channels(2), bits_per_sample(16),
57  device(), bufbase(10),
58  method(Kwave::PLAYBACK_NONE)
59  {
60  }
61 
63  double rate;
64 
66  unsigned int channels;
67 
69  unsigned int bits_per_sample;
70 
72  QString device;
73 
75  unsigned int bufbase;
76 
79 
80  };
81 }
82 
83 #endif /* PLAY_BACK_PARAM_H */
84 
85 //***************************************************************************
86 //***************************************************************************
Definition: App.h:33
unsigned int channels
Definition: PlayBackParam.h:66
playback_method_t
Definition: PlayBackParam.h:31
unsigned int bits_per_sample
Definition: PlayBackParam.h:69
unsigned int bufbase
Definition: PlayBackParam.h:75
static FileProperty operator++(FileProperty &prop)
Definition: FileInfo.h:104
Kwave::playback_method_t method
Definition: PlayBackParam.h:78