Add Webarchy WPE/WebKit browser, SIP ZRTP/SRTP & codecs, xirc buffer fixes, and Noto web fonts
This commit is contained in:
1 parent
61768fa88e
commit
d7335b5ebe
81 files changed
+3822
-248
No files matched your search
@@ -176,11 +176,17 @@ std::string getFriendPubKeyHex(Tox* tox, uint32_t friendNum) {
|
||||
|
||||
void startToxAvAudioPipes(ToxRuntimeContext* ctx) {
|
||||
std::lock_guard<std::mutex> lk(ctx->audioMtx);
|
||||
::system("amixer -c 0 cset \"name='PRI_MI2S_RX Audio Mixer MultiMedia1'\" 1 >/dev/null 2>&1; "
|
||||
"amixer -c 0 cset \"name='MultiMedia2 Mixer TERT_MI2S_TX'\" 1 >/dev/null 2>&1");
|
||||
if (!ctx->playPipe) {
|
||||
ctx->playPipe = ::popen("aplay -q -f S16_LE -r 48000 -c 1 -t raw 2>/dev/null", "w");
|
||||
ctx->playPipe = ::popen(
|
||||
"aplay -q --buffer-time=80000 --period-time=20000 -f S16_LE -r 48000 -c 1 -t raw 2>/dev/null",
|
||||
"w");
|
||||
}
|
||||
if (!ctx->capPipe) {
|
||||
ctx->capPipe = ::popen("arecord -q -f S16_LE -r 48000 -c 1 -t raw 2>/dev/null", "r");
|
||||
ctx->capPipe = ::popen(
|
||||
"arecord -q -D plughw:0,1 --buffer-time=80000 --period-time=20000 -f S16_LE -r 48000 -c 1 -t raw 2>/dev/null",
|
||||
"r");
|
||||
if (ctx->capPipe) {
|
||||
ctx->capFd = ::fileno(ctx->capPipe);
|
||||
int fl = ::fcntl(ctx->capFd, F_GETFL, 0);
|
||||
|
||||
Reference in new issue
Block a user