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