mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-11 08:54:34 -05:00
42 lines
918 B
C
42 lines
918 B
C
|
#include <QObject>
|
||
|
#include <QGraphicsEffect>
|
||
|
#include <gui/SpeexProcessor.h>
|
||
|
#include <gui/chat/ChatWidget.h>
|
||
|
|
||
|
class QToolButton;
|
||
|
class QAudioInput;
|
||
|
class QAudioOutput;
|
||
|
|
||
|
#define VOIP_SOUND_INCOMING_CALL "VOIP_incoming_call"
|
||
|
|
||
|
class AudioChatWidgetHolder : public QObject, public ChatWidgetHolder
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
AudioChatWidgetHolder(ChatWidget *chatWidget);
|
||
|
virtual ~AudioChatWidgetHolder();
|
||
|
|
||
|
virtual void updateStatus(int status);
|
||
|
|
||
|
void addAudioData(const QString name, QByteArray* array) ;
|
||
|
|
||
|
private slots:
|
||
|
void toggleAudioListen();
|
||
|
void toggleAudioMuteCapture();
|
||
|
void hangupCall() ;
|
||
|
|
||
|
public slots:
|
||
|
void sendAudioData();
|
||
|
|
||
|
protected:
|
||
|
QAudioInput* inputDevice;
|
||
|
QAudioOutput* outputDevice;
|
||
|
QtSpeex::SpeexInputProcessor* inputProcessor;
|
||
|
QtSpeex::SpeexOutputProcessor* outputProcessor;
|
||
|
|
||
|
QToolButton *audioListenToggleButton ;
|
||
|
QToolButton *audioMuteCaptureToggleButton ;
|
||
|
QToolButton *hangupButton ;
|
||
|
};
|