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
19 lines
516 B
C++
19 lines
516 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.
|
|
//
|
|
|
|
#include "MediaStreamItf.h"
|
|
|
|
using namespace tgvoip;
|
|
|
|
void MediaStreamItf::SetCallback(size_t (*f)(unsigned char *, size_t, void*), void* param){
|
|
callback=f;
|
|
callbackParam=param;
|
|
}
|
|
|
|
size_t MediaStreamItf::InvokeCallback(unsigned char *data, size_t length){
|
|
return (*callback)(data, length, callbackParam);
|
|
}
|