mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-22 21:44:46 +00:00
18 lines
494 B
C++
18 lines
494 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"
|
|
|
|
|
|
void CMediaStreamItf::SetCallback(size_t (*f)(unsigned char *, size_t, void*), void* param){
|
|
callback=f;
|
|
callbackParam=param;
|
|
}
|
|
|
|
size_t CMediaStreamItf::InvokeCallback(unsigned char *data, size_t length){
|
|
return (*callback)(data, length, callbackParam);
|
|
}
|