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:
parent
4f233d7d68
commit
32a5a83b81
@ -42,4 +42,5 @@ void AudioInputPHP::writeFrames(Php::Parameters ¶ms){
|
||||
unsigned char * buf;
|
||||
memcpy(buf, params[0], 960*2);
|
||||
InvokeCallback(buf, 960*2);
|
||||
delete buf;
|
||||
}
|
4
main.cpp
4
main.cpp
@ -116,14 +116,14 @@ public:
|
||||
|
||||
void writeFrames(Php::Parameters ¶ms) {
|
||||
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];
|
||||
|
Loading…
Reference in New Issue
Block a user