1
0
mirror of https://github.com/danog/php-libtgvoip.git synced 2024-11-26 20:04:48 +01:00

Ah well idk

This commit is contained in:
Daniil Gentili 2017-06-19 16:07:24 +02:00
parent 4f233d7d68
commit 32a5a83b81
2 changed files with 3 additions and 2 deletions

View File

@ -42,4 +42,5 @@ void AudioInputPHP::writeFrames(Php::Parameters &params){
unsigned char * buf;
memcpy(buf, params[0], 960*2);
InvokeCallback(buf, 960*2);
delete buf;
}

View File

@ -116,14 +116,14 @@ public:
void writeFrames(Php::Parameters &params) {
AudioInputPHP* in=(AudioInputPHP*)inst;
in->writeFrames((unigned char *)params[0], params[0].length());
in->writeFrames(params);
}
Php::Value readFrames() {
AudioOutputPHP* out=(AudioOutputPHP*)inst;
return out->readFrames();
}
*/
Php::Value getDebugString() {
char buf[10240];