Apply fixes from StyleCI
This commit is contained in:
parent
353f8b6281
commit
9403c4012b
14
magna.php
14
magna.php
@ -45,16 +45,17 @@ $times = [];
|
|||||||
$calls = [];
|
$calls = [];
|
||||||
$users = [];
|
$users = [];
|
||||||
|
|
||||||
function configureCall($call) {
|
function configureCall($call)
|
||||||
|
{
|
||||||
include 'songs.php';
|
include 'songs.php';
|
||||||
$call->configuration['enable_NS'] = false;
|
$call->configuration['enable_NS'] = false;
|
||||||
$call->configuration['enable_AGC'] = false;
|
$call->configuration['enable_AGC'] = false;
|
||||||
$call->configuration['enable_AEC'] = false;
|
$call->configuration['enable_AEC'] = false;
|
||||||
$call->configuration['shared_config'] = [
|
$call->configuration['shared_config'] = [
|
||||||
'audio_init_bitrate' => 100 * 1000,
|
'audio_init_bitrate' => 100 * 1000,
|
||||||
'audio_max_bitrate' => 500 * 1000,
|
'audio_max_bitrate' => 500 * 1000,
|
||||||
'audio_min_bitrate' => 100 * 1000,
|
'audio_min_bitrate' => 100 * 1000,
|
||||||
'audio_congestion_window' => 4*1024
|
'audio_congestion_window' => 4 * 1024,
|
||||||
//'audio_bitrate_step_decr' => 0,
|
//'audio_bitrate_step_decr' => 0,
|
||||||
//'audio_bitrate_step_incr' => 2000,
|
//'audio_bitrate_step_incr' => 2000,
|
||||||
];
|
];
|
||||||
@ -62,7 +63,6 @@ function configureCall($call) {
|
|||||||
$call->playOnHold($songs);
|
$call->playOnHold($songs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$MadelineProto->get_updates(['offset' => -1]);
|
$MadelineProto->get_updates(['offset' => -1]);
|
||||||
$offset = 0;
|
$offset = 0;
|
||||||
while (1) {
|
while (1) {
|
||||||
@ -207,5 +207,5 @@ Propic art by @magnaluna on deviantart.", 'parse_mode' => 'Markdown']);
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user