RetroShare/plugins/VOIP/rsvoip.h

38 lines
1.1 KiB
C
Raw Normal View History

// interface class for p3Voip service
//
#pragma once
#include <stdint.h>
class RsVoipServiceInterface ;
extern RsVoipServiceInterface *rsVoipSI;
static const uint32_t CONFIG_TYPE_VOIP_PLUGIN = 0xe001 ;
static const uint32_t RS_SERVICE_TYPE_VOIP_PLUGIN = 0xe001 ;
class RsVoipServiceInterface
{
public:
virtual int sendVoipData(const void *data,uint32_t size) = 0;
typedef enum { AudioTransmitContinous = 0, AudioTransmitVAD = 1, AudioTransmitPushToTalk = 2 } enumAudioTransmit ;
// Config stuff
virtual int getVoipATransmit() const = 0 ;
virtual void setVoipATransmit(int) = 0 ;
virtual int getVoipVoiceHold() const = 0 ;
virtual void setVoipVoiceHold(int) = 0 ;
virtual int getVoipfVADmin() const = 0 ;
virtual void setVoipfVADmin(int) = 0 ;
virtual int getVoipfVADmax() const = 0 ;
virtual void setVoipfVADmax(int) = 0 ;
virtual int getVoipiNoiseSuppress() const = 0 ;
virtual void setVoipiNoiseSuppress(int) = 0 ;
virtual int getVoipiMinLoudness() const = 0 ;
virtual void setVoipiMinLoudness(int) = 0 ;
virtual bool getVoipEchoCancel() const = 0 ;
virtual void setVoipEchoCancel(bool) = 0 ;
};