| 6 |
| 7 | #ifndef LIBTGVOIP_AUDIOINPUT_H |
| 8 | #define LIBTGVOIP_AUDIOINPUT_H |
| 9 |
| 10 | #include <stdint.h> |
| 11 | #include <vector> |
| 12 | #include <string> |
| 13 | #include "../MediaStreamItf.h" |
| 14 |
| 15 | namespace tgvoip{ |
| 16 |
| 17 | class AudioInputDevice; |
| 18 | class AudioOutputDevice; |
| 19 |
| 20 | namespace audio{ |
| 21 | class AudioInput : public MediaStreamItf{ |
| 22 | public: |
| 23 | AudioInput(); |
| 24 | AudioInput(std::string deviceID); |
| 25 | virtual ~AudioInput(); |
| 26 |
| 27 | bool IsInitialized(); |
| 28 | virtual std::string GetCurrentDevice(); |
| 29 | virtual void SetCurrentDevice(std::string deviceID); |
| 30 | //static AudioInput* Create(std::string deviceID, void* platformSpecific); |
| 31 | static void EnumerateDevices(std::vector<AudioInputDevice>& devs); |
| 32 | static int32_t GetEstimatedDelay(); |
| 33 |
| 34 | protected: |
| 35 | std::string currentDevice; |
| 36 | bool failed; |
| 37 | static int32_t estimatedDelay; |
| 38 | }; |
| 39 | }} |
| 40 |
| 41 | #endif //LIBTGVOIP_AUDIOINPUT_H |
| 42 |