1
//=========================================================
4
// $Id: ssource.h,v 1.2 2001/11/20 15:19:32 muse Exp $
6
// (C) Copyright 2000 Werner Schweer (ws@seh.de)
7
//=========================================================
14
#ifndef AUDIO_CHANNELS
15
#define AUDIO_CHANNELS 2 // max channels: stereo
18
//---------------------------------------------------------
20
//---------------------------------------------------------
22
class SoundSource : public QObject {
26
int _curActivity; //tmp value
27
int _channels; // 1 - mono, 2 stereo
30
int _activity[AUDIO_CHANNELS];
31
int _peak[AUDIO_CHANNELS];
39
SoundSource(const SoundSource& s);
41
bool soloMute() const;
43
virtual void setMute(bool val);
44
virtual void setSolo(bool val);
47
virtual void setChannels(int val);
49
void setActivity(int v, int c=0);
50
void addActivity(int v, int c=0);
52
// for midi (obsolete?):
53
int curActivity() const;
54
void setCurActivity(int v);
56
int peak(int channel);
57
int activity(int channel=0);