mirror of
https://github.com/danog/libtgvoip.git
synced 2024-11-30 04:39:03 +01:00
697e250727
Replaced condition variables with semaphores Audio device enumeration & selection on OS X and Windows
30 lines
677 B
C++
30 lines
677 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_MEDIASTREAMINPUT_H
|
|
#define LIBTGVOIP_MEDIASTREAMINPUT_H
|
|
|
|
#include <string.h>
|
|
|
|
namespace tgvoip{
|
|
class MediaStreamItf{
|
|
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;
|
|
};
|
|
}
|
|
|
|
|
|
#endif //LIBTGVOIP_MEDIASTREAMINPUT_H
|