1
0
mirror of https://github.com/danog/libtgvoip.git synced 2025-01-23 05:21:18 +01:00
libtgvoip/audio/AudioInput.h

28 lines
622 B
C
Raw Normal View History

2017-02-02 19:24:40 +03:00
//
// 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 "../MediaStreamItf.h"
class CAudioInput : public CMediaStreamItf{
public:
2017-03-30 17:06:59 +03:00
CAudioInput();
2017-02-02 19:24:40 +03:00
virtual ~CAudioInput();
virtual void Configure(uint32_t sampleRate, uint32_t bitsPerSample, uint32_t channels)=0;
2017-03-30 17:06:59 +03:00
bool IsInitialized();
2017-02-02 19:24:40 +03:00
static CAudioInput* Create();
2017-03-30 17:06:59 +03:00
protected:
bool failed;
2017-02-02 19:24:40 +03:00
};
#endif //LIBTGVOIP_AUDIOINPUT_H