~ubuntu-branches/ubuntu/breezy/muse/breezy

« back to all changes in this revision

Viewing changes to mixer/amixer.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Kobras
  • Date: 2004-02-07 15:18:22 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040207151822-es27xxkzbcxkebjm
Tags: 0.6.3-1
* New upstream version.
* Added patches:
  + [10_alsa_init_fix] New, from upstream CVS.
    Initialize direction variable when setting Alsa parameters.
  + [10_canvas_translation_fix] New, from upstream CVS.
    Do not translate tooltips twice in canvas popup.
  + [10_checkbox_fix] New, from upstream CVS.
    Use proper set/test methods on metronome checkboxes.
  + [10_html_doc_cleanup] New.
    Fix links and HTML errors in documentation.
  + [20_allow_system_timer] New.
    The new upstream version fails by default if the real-time clock
    could not be accessed (usually the case when not running suid-root).
    This patch reverts the old behaviour of falling back to the more
    inaccurate system timer.
* Updated patches:
  + [11_PIC_fixes_fixup] Rediffed.
* Removed patches:
  + [20_no_atomic_asm] Merged upstream.
* debian/compat: Splice out debhelper compatibility level from rules file.
* debian/control: Build-depend on latest jack release by default.
  Closes: #228788
* debian/control: Bump standards version.
* debian/control: Use auto-generated debconf dependency via misc:Depends.
* debian/control: Minor tweaks to the long description.
* debian/control: Tighten fluidsynth build dependency to sane version.
* debian/muse.doc-base: New. Register HTML documentation with doc-base.
* debian/templates: Tiny rewording, and typo fix.
* debian/templates, debian/po/*: Switch to po-debconf for translations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
//=========================================================
2
2
//  MusE
3
3
//  Linux Music Editor
4
 
//  $Id: amixer.h,v 1.2 2001/11/20 15:19:33 muse Exp $
 
4
//  $Id: amixer.h,v 1.1.1.1 2003/10/29 10:05:24 wschweer Exp $
5
5
//
6
6
//  (C) Copyright 2000 Werner Schweer (ws@seh.de)
7
7
//=========================================================
13
13
#include <qpixmap.h>
14
14
#include <qlistbox.h>
15
15
#include <list>
16
 
#include "audiomix.h"
17
16
 
18
17
#include "cobject.h"
19
18
#include "synth.h"
20
 
#include "audioport.h"
 
19
#include "node.h"
21
20
 
22
21
#include <qtooltip.h>
23
22
 
28
27
class AudioThread;
29
28
class AudioNode;
30
29
class QGridLayout;
 
30
class Meter;
 
31
class RouteComboBox;
 
32
class AudioNodeButton;
 
33
class Track;
 
34
class QLabel;
 
35
class VolSlider;
31
36
 
32
37
#define EFX_HEIGHT     16
33
38
#define MAX_CHANNEL     2     // only mono/stereo
34
39
#define MAX_PLUGINS     4
35
40
 
 
41
enum { MASTER, GROUP, TRACK, INPUT, SYNTHI };
 
42
 
 
43
//---------------------------------------------------------
 
44
//   Strip
 
45
//---------------------------------------------------------
 
46
 
 
47
class Strip : public QObject {
 
48
      Q_OBJECT
 
49
 
 
50
   public:
 
51
      int type;
 
52
      int channel;
 
53
      QLabel* label;
 
54
      VolSlider* slider;
 
55
 
 
56
      AudioNode* src;
 
57
      Meter* meter[2];
 
58
      RouteComboBox* routeCombo;
 
59
      AudioNodeButton* mute;
 
60
      AudioNodeButton* record;
 
61
      AudioNodeButton* solo;
 
62
 
 
63
   public slots:
 
64
      void resetPeaks();
 
65
 
 
66
   public:
 
67
      Strip(int t) {
 
68
            channel = 0;
 
69
            type    = t;
 
70
            }
 
71
      ~Strip() {
 
72
            }
 
73
      };
 
74
 
36
75
//---------------------------------------------------------
37
76
//   AudioMixerApp
38
77
//---------------------------------------------------------
42
81
      QWidget* central;
43
82
      QHBoxLayout* lbox;
44
83
      QGridLayout* grid;
 
84
      Strip* master;
45
85
 
46
86
      Q_OBJECT
47
87
 
48
88
      virtual void closeEvent(QCloseEvent* e);
49
89
      void readStatus(Xml&);
50
90
      void writeStatus(int, Xml&) const;
51
 
      void genStrip(const QString& txt, int col, AudioNode*, int);
 
91
      Strip* genStrip(const QString& txt, int col, AudioNode*, int);
52
92
      void createMixer();
 
93
      virtual void customEvent(QCustomEvent*);
 
94
      void updateOutputRoute();
53
95
 
54
96
   signals:
55
97
      void deleted(int);
61
103
      void muteToggled(bool, AudioNode*);
62
104
      void stereoToggled(bool, AudioNode*);
63
105
      void preToggled(bool, AudioNode*);
 
106
      void offToggled(bool, AudioNode*);
64
107
      void recFileDialog();
 
108
      void recordFlagChanged(Track*);
 
109
      void addInput();
65
110
 
66
111
   public slots:
67
112
      void songChanged(int);