mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-26 15:31:12 +00:00
29 lines
720 B
C++
29 lines
720 B
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_AUDIOOUTPUT_H
|
|
#define LIBTGVOIP_AUDIOOUTPUT_H
|
|
|
|
#include <stdint.h>
|
|
#include "../MediaStreamItf.h"
|
|
|
|
class CAudioOutput : public CMediaStreamItf{
|
|
public:
|
|
virtual ~CAudioOutput();
|
|
virtual void Configure(uint32_t sampleRate, uint32_t bitsPerSample, uint32_t channels)=0;
|
|
virtual bool IsPlaying()=0;
|
|
virtual float GetLevel()=0;
|
|
static CAudioOutput* Create();
|
|
static int32_t GetEstimatedDelay();
|
|
|
|
#if defined(__ANDROID__)
|
|
static int systemVersion;
|
|
#endif
|
|
};
|
|
|
|
|
|
#endif //LIBTGVOIP_AUDIOOUTPUT_H
|