You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
2.3 KiB
68 lines
2.3 KiB
15 years ago
|
/***************************************************************************
|
||
|
recording-monitor-widget.h - description
|
||
|
-------------------
|
||
|
begin : So Sep 7 2003
|
||
|
copyright : (C) 2003 by Martin Witte
|
||
|
email : witte@kawo1.rwth-aachen.de
|
||
|
***************************************************************************/
|
||
|
|
||
|
/***************************************************************************
|
||
|
* *
|
||
|
* This program is free software; you can redistribute it and/or modify *
|
||
|
* it under the terms of the GNU General Public License as published by *
|
||
|
* the Free Software Foundation; either version 2 of the License, or *
|
||
|
* (at your option) any later version. *
|
||
|
* *
|
||
|
***************************************************************************/
|
||
|
|
||
|
#ifndef KRADIO_RECORDING_DATA_MONITOR
|
||
|
#define KRADIO_RECORDING_DATA_MONITOR
|
||
|
|
||
14 years ago
|
#include <tqframe.h>
|
||
|
#include <tqcolor.h>
|
||
15 years ago
|
|
||
12 years ago
|
//#include <tderadio/interfaces/recording-interfaces.h>
|
||
15 years ago
|
#include "../../src/include/soundstreamclient_interfaces.h"
|
||
|
|
||
14 years ago
|
class RecordingDataMonitor : public TQFrame//,
|
||
15 years ago
|
//public ISoundStreamClient
|
||
|
//public IRecordingClient
|
||
|
{
|
||
|
Q_OBJECT
|
||
13 years ago
|
|
||
15 years ago
|
public:
|
||
13 years ago
|
RecordingDataMonitor(TQWidget *parent, const char *name);
|
||
15 years ago
|
~RecordingDataMonitor();
|
||
|
|
||
|
bool noticeSoundStreamData(SoundStreamID id,
|
||
|
const SoundFormat &sf, const char *data, size_t size, size_t &consumed_size,
|
||
|
const SoundMetaData &md);
|
||
|
|
||
|
// QT/KDE ...
|
||
|
|
||
|
protected:
|
||
|
|
||
14 years ago
|
void drawContents(TQPainter *p);
|
||
14 years ago
|
void internalDrawContents(TQPainter &painter, bool repaintAll);
|
||
15 years ago
|
// own stuff ...
|
||
|
|
||
|
protected:
|
||
|
|
||
|
void setChannels(int n);
|
||
14 years ago
|
bool setColors(const TQColor &activeColor, const TQColor &bkgnd);
|
||
15 years ago
|
|
||
|
// data
|
||
|
protected:
|
||
|
|
||
|
int *m_channelsMax; // maximum absolute value recorded on each channel
|
||
|
double *m_channelsAvg; // average value recorded on each channel
|
||
|
int m_maxValue; // maximum absolute value possible for samples
|
||
|
int m_channels;
|
||
|
|
||
14 years ago
|
TQColor m_colorActiveText, m_colorButton;
|
||
15 years ago
|
|
||
|
int *m_pActiveBlocks;
|
||
|
};
|
||
|
|
||
|
#endif
|