mirror of
https://github.com/danog/libtgvoip.git
synced 2024-11-30 04:39:03 +01:00
46 lines
1.0 KiB
C++
46 lines
1.0 KiB
C++
//
|
|
// libtgvoip is free and unencumbered public domain software.
|
|
// For more information, see http://unlicense.org or the UNLICENSE file
|
|
// you should have received with this source code distribution.
|
|
//
|
|
|
|
#ifndef LIBTGVOIP_AUDIOINPUT_H
|
|
#define LIBTGVOIP_AUDIOINPUT_H
|
|
|
|
#include <stdint.h>
|
|
#include <vector>
|
|
#include <string>
|
|
#include "../controller/MediaStreamItf.h"
|
|
|
|
namespace tgvoip
|
|
{
|
|
|
|
class AudioInputDevice;
|
|
class AudioOutputDevice;
|
|
|
|
namespace audio
|
|
{
|
|
class AudioInput : public MediaStreamItf
|
|
{
|
|
public:
|
|
AudioInput();
|
|
AudioInput(std::string deviceID);
|
|
virtual ~AudioInput();
|
|
|
|
bool IsInitialized();
|
|
virtual std::string GetCurrentDevice();
|
|
virtual void SetCurrentDevice(std::string deviceID);
|
|
//static AudioInput* Create(std::string deviceID, void* platformSpecific);
|
|
static void EnumerateDevices(std::vector<AudioInputDevice> &devs);
|
|
static int32_t GetEstimatedDelay();
|
|
|
|
protected:
|
|
std::string currentDevice;
|
|
bool failed;
|
|
static int32_t estimatedDelay;
|
|
};
|
|
} // namespace audio
|
|
} // namespace tgvoip
|
|
|
|
#endif //LIBTGVOIP_AUDIOINPUT_H
|