mirror of
https://github.com/danog/php-libtgvoip.git
synced 2024-11-26 20:04:48 +01:00
Added setBitrate method
This commit is contained in:
parent
83e05e5f25
commit
fc03f8547b
11
main.cpp
11
main.cpp
@ -392,9 +392,15 @@ Php::Value VoIP::setMicMute(Php::Parameters ¶ms)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void VoIP::debugCtl(Php::Parameters ¶ms)
|
Php::Value VoIP::debugCtl(Php::Parameters ¶ms)
|
||||||
{
|
{
|
||||||
inst->DebugCtl(params[0], params[1]);
|
inst->DebugCtl((int) params[0], (int) params[1]);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
Php::Value VoIP::setBitrate(Php::Parameters ¶ms)
|
||||||
|
{
|
||||||
|
inst->DebugCtl(1, (int) params[0]);
|
||||||
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
Php::Value VoIP::getDebugLog()
|
Php::Value VoIP::getDebugLog()
|
||||||
@ -563,6 +569,7 @@ extern "C" {
|
|||||||
voip.method<&VoIP::setOutputFile>("setOutputFile", Php::Public | Php::Final, {Php::ByVal("file", Php::Type::String)});
|
voip.method<&VoIP::setOutputFile>("setOutputFile", Php::Public | Php::Final, {Php::ByVal("file", Php::Type::String)});
|
||||||
voip.method<&VoIP::unsetOutputFile>("unsetOutputFile", Php::Public | Php::Final);
|
voip.method<&VoIP::unsetOutputFile>("unsetOutputFile", Php::Public | Php::Final);
|
||||||
|
|
||||||
|
voip.method<&VoIP::setBitrate>("setBitrate", Php::Public | Php::Final, {Php::ByVal("bitrate", Php::Type::Numeric)});
|
||||||
|
|
||||||
voip.property("configuration", 0, Php::Public);
|
voip.property("configuration", 0, Php::Public);
|
||||||
voip.property("storage", 0, Php::Public);
|
voip.property("storage", 0, Php::Public);
|
||||||
|
3
main.h
3
main.h
@ -72,7 +72,8 @@ public:
|
|||||||
Php::Value getStats();
|
Php::Value getStats();
|
||||||
Php::Value getDebugLog();
|
Php::Value getDebugLog();
|
||||||
Php::Value getDebugString();
|
Php::Value getDebugString();
|
||||||
void debugCtl(Php::Parameters ¶ms);
|
Php::Value debugCtl(Php::Parameters ¶ms);
|
||||||
|
Php::Value setBitrate(Php::Parameters ¶ms);
|
||||||
|
|
||||||
void setOutputLevel(Php::Parameters ¶ms);
|
void setOutputLevel(Php::Parameters ¶ms);
|
||||||
Php::Value setMicMute(Php::Parameters ¶ms);
|
Php::Value setMicMute(Php::Parameters ¶ms);
|
||||||
|
Loading…
Reference in New Issue
Block a user