2017-02-02 17:24:40 +01: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_MEDIASTREAMINPUT_H
|
|
|
|
#define LIBTGVOIP_MEDIASTREAMINPUT_H
|
|
|
|
|
|
|
|
#include <string.h>
|
|
|
|
|
2017-04-28 13:17:56 +02:00
|
|
|
namespace tgvoip{
|
|
|
|
class MediaStreamItf{
|
2017-02-02 17:24:40 +01:00
|
|
|
public:
|
|
|
|
virtual void Start()=0;
|
|
|
|
virtual void Stop()=0;
|
|
|
|
void SetCallback(size_t (*f)(unsigned char*, size_t, void*), void* param);
|
|
|
|
|
|
|
|
//protected:
|
|
|
|
size_t InvokeCallback(unsigned char* data, size_t length);
|
|
|
|
|
|
|
|
private:
|
|
|
|
size_t (*callback)(unsigned char*, size_t, void*);
|
|
|
|
void* callbackParam;
|
|
|
|
};
|
2017-04-28 13:17:56 +02:00
|
|
|
}
|
2017-02-02 17:24:40 +01:00
|
|
|
|
|
|
|
|
|
|
|
#endif //LIBTGVOIP_MEDIASTREAMINPUT_H
|