Commit Graph
100 Commits
Author SHA1 Message Date
evgeny 5622b9dab9 feat(chat): add local DM deletion and improve Android member list
Delete local conversations atomically, retain replay protection and sequence counters, and guard asynchronous media work by history generation. Add Android avatar menu and confirmation, persistent file cleanup, and regression coverage.

Fix unnamed member wire padding and compact Android member action spacing.

Validation: 158 core tests passed; targeted DM tests, desktop build, Android unit tests and debug APK build passed.
2026-10-18 02:04:05 +02:00
evgeny c006dd5915 Add Android native control for source audio state 2026-10-16 01:51:37 +02:00
evgeny 69537ddb2d Bind shared call video port to desktop and Android core lifetime 2026-10-14 22:36:03 +02:00
evgeny cb66ec56a8 Use shared media opening in desktop and Android viewers 2026-10-14 16:30:38 +02:00
evgeny dd3ba0ca14 Prepare one Android media response per player request 2026-10-14 13:36:38 +02:00
evgeny a6b3ae27a1 Use the shared publisher in Android and desktop stream bridges 2026-10-14 02:34:16 +02:00
evgeny 6a53703e21 Report codec capabilities and document the expanded Android media header 2026-10-14 01:45:50 +02:00
evgeny 3b494a22ba Initialize the publication media format with the selected codec 2026-10-14 01:09:30 +02:00
evgeny 434bb2cff4 Publish bounded 100 ms send telemetry from the Android media actor 2026-10-14 01:08:20 +02:00
evgeny 431a12280b Discard stale playback snapshots before reseeking a media cursor 2026-10-13 23:39:45 +02:00
evgeny b4999d03ba Observe actual silent device intervals when adapting playback history 2026-10-13 23:26:55 +02:00
evgeny ee31410210 Switch Android media delivery to demand reads from the shared RS ring 2026-10-13 22:53:13 +02:00
evgeny c5ab37ba66 Size Android publisher buffers for the signed batch format 2026-10-13 20:09:14 +02:00
evgeny 57add435ea Describe stereo Opus in live media blocks 2026-10-13 14:14:24 +02:00
evgeny f275db1616 Add stream camera controls and preserve playback on changes 2026-10-13 01:00:53 +02:00
evgeny 5394ae4f9f Require selected epochs and verify multiple live publishers 2026-10-12 22:28:15 +02:00
evgeny e5685ffdac Remove obsolete Android stream polling and simplify lifecycle tests 2026-10-12 22:20:28 +02:00
evgeny 97e2fd934f Watch Android stream sources and validate selected epochs 2026-10-12 21:58:56 +02:00
evgeny 614dc5ad2e Fix Android external network monitoring and startup readiness
Select frontend network callbacks for auto_sockets=android instead of opening a denied netlink monitor. Preserve monitor descriptor ownership, keep native monitoring failures fatal, and release caller config on failed Android core creation and restart.

Register ConnectivityManager before requesting startup, report readiness after SERVICE_STARTED, and refresh addresses after initialization with serialized updates and generation checks. Add regression coverage for denied netlink, socket failures, address updates, and fd=0 preservation. Record the separate cancellation issue for startup before readiness.

Validation: full check.sh passed, including proxy/burst/load integrations. Clean Android build installed successfully on SM-A525F and Q8; logcat confirms both cores initialized and entered the poll loop with external monitoring and post-start address refresh.
2026-10-12 16:01:26 +02:00
evgeny e7a8101b11 Close viewers on malformed media and release terminal owners immediately 2026-10-12 11:46:13 +02:00
evgeny 6c32adbff8 Reject overlapping core ownership of Android stream handles 2026-10-12 11:26:27 +02:00
evgeny 2d06c1b0b6 Mute local preview and clear Android media queues at detach 2026-10-12 07:22:43 +02:00
evgeny 33dd8e214d Preserve stream control events when discarding delayed media 2026-10-12 02:42:01 +02:00
evgeny 884dcf73cc Build verified live source snapshots in the core thread 2026-10-12 02:27:44 +02:00
evgeny 8d86d84ec7 Bind Android media queues to core lifetime and source epochs 2026-10-12 01:50:07 +02:00
evgeny e963451f84 Include Android streaming bridge and refine malformed wire tests 2026-10-12 01:49:40 +02:00
evgeny 902c9c82c1 Bridge Android live streams through bounded session queues 2026-10-12 01:49:07 +02:00
evgeny 9dc0c2deed tests: accelerate standby phases and group connection retries 2026-10-10 15:06:56 +02:00
evgeny 961ebe6cea android: pass reply context through video preparation 2026-10-08 10:29:29 +02:00
evgeny 29c00d8335 android: preserve reply context while recording voice 2026-10-08 10:29:29 +02:00
evgeny 2fca15f1a4 android: carry channel reply references through file and photo sends 2026-10-08 10:29:08 +02:00
evgeny 451807b6bf logging: preserve system diagnostics and inherit Android debug level 2026-10-07 21:21:33 +02:00
evgeny ec01131ed8 Improve Android VAD lifecycle, audio settings and diagnostics 2026-10-04 14:36:52 +02:00
evgeny 7c4b909bc7 docs: update file inventory and module header contracts
Refresh both AGENTS guides and clarify module purpose, usage, ownership, threading, return values and wire formats in headers. Remove the unused timeout_heap freed_count field and unimplemented getter.
2026-10-04 13:10:01 +02:00
evgeny d184cd4952 Сохрани накопленные исправления аудио, async и диагностики 2026-10-02 01:49:32 +03:00
evgeny 28c5030ad9 Validate capture format and diagnose capture thread failures 2026-10-01 18:48:57 +03:00
evgeny 2816fd47bd Use bounded independent Android cache files for each attachment 2026-10-01 18:24:12 +03:00
evgeny 21cb9d03e6 Use fixed conversation targets for Android media preparation 2026-10-01 18:11:54 +03:00
evgeny 8dee2a3ee0 Detach Android recordings for shared background preparation 2026-10-01 18:01:45 +03:00
evgeny a673d58862 Synchronize standby transitions and immediate keepalive phase announcements 2026-09-30 20:42:40 +03:00
evgeny 73b4050638 Separate core, UTUN and chat lifecycles with owned asynchronous work 2026-09-28 11:39:08 +03:00
evgeny 391f63d31d call: ретрансмит INVITE каждые 2с + fail-fast при отсутствии маршрута (6с) 2026-09-22 16:06:52 +03:00
evgeny 7c569bc5b5 etcp: keepalive sleep-протокол на флагах (KA_FLAG_SLEEP + sleep_time, announce-retry, ack/echo) 2026-09-21 23:30:39 +03:00
evgeny 99c7249396 android: standby keepalive sync + rx logging during sleep 2026-09-21 21:17:35 +03:00
evgeny f29f1c7c0b chatgui: диагностика воспроизведения голосовых сообщений (Windows)
- sound_manager: ma_engine_init/playRawPcm логируют через DEBUG_* (qWarning/qDebug терялись в GUI-приложении без консоли); детальный результат старта PCM (rc/is_playing/cursor)
- main: ранняя инициализация лога в GUI-потоке до SoundManager::init, чтобы диагностика инициализации попала в файл
- messagedelegate: лог клика по Play/timeline (filePath/dlState/существует ли файл)
- voiceplayback: лог заголовка opus (sr/ch/frameSamples)

Попутные правки:
- u_async: фикс двойного close wakeup_pipe (eventfd/Windows)
- chat_core: NULL-guard в get_db/is_initialized
- android: sqlite открывается в utun_instance_init, cleanup stale-потока без утечки fd
- android SettingsScreen: компактная раскладка имени интерфейса
2026-09-21 18:59:04 +03:00
evgeny a7e00f7107 chatgui: verify FFmpeg DLL deployment + fix dependency resolution order 2026-09-21 11:52:21 +03:00
evgeny 205e18efaa reality_relay: async DNS вместо getaddrinfo + AGC-компрессор по умолчанию (-12 dBFS) 2026-09-20 15:28:46 +03:00
evgeny 2ac04de295 radio: PTT-радио в каналах (src/radio + chatgui + chatgui-android)
Новый модуль src/radio (radio/radio_audio/radio_headless) — push-to-talk
радио поверх topo-групп, доставка аудио в канал, headless-режим и тесты.
Интеграция в chatgui (ptt_hotkey_manager, radio_audio_engine, радионастройки,
вызовы) и chatgui-android (RadioAudioEngine, RadioOverlayService, UI).
2026-09-19 17:09:00 +03:00
evgeny c3faa7ed2c call: единый голосовой стек (libutun_voice) + SoundTouch на Android
- voice_jitter (кодированные Opus-кадры + decode-on-pull + SoundTouch time-stretch)
  вместо PCM-буфера audio_jitter; излишек держится до декодирования
- call_audio.c/.h — единая реализация для desktop/Android/headless (C-интерфейс)
- libutun_voice (voice_sources.cmake): SoundTouch + voice_jitter + call_audio + call_tones
- Android: pull-модель (nativeCallAudioPull), убран Kotlin FIFO, ANDROID_STL=c++_static
- headless audio-сокет: PCM-протокол (decode-only, без тактирования), daemon остаётся C-only
- CALL_STATS расширен dropped/underruns; удалены audio_jitter.cpp и libutun_lite/call_audio.c
- тест test_voice_jitter (ёмкость/догон/стационар), test_call_headless переведён на PCM
2026-09-16 20:26:55 +03:00
evgeny efa82bacf3 call: P2P аудиозвонки — сигналинг, релей медиа, аудио-контур, headless/desktop/android
- src/call/: сигналинг (call.c, call_proto.h, ETCP_RT_ID_CALL 0x36) + релей медиа
  + headless аудио-сокет (call_headless.c, call_audio_bind) + Opus/jitter/тоны
- chat: события CHAT_EVT_CALL_* (34–40), CHAT_EVT_DM_MESSAGES (41), DM-трамплины
- chatgui: call window, miniaudio I/O, audio_frame_ring, test_audio_jitter
- chatgui-android: CallScreen/IncomingCallDialog, аудио-роутинг, JNI, рингтон
- tests: test_call, test_call_headless
2026-09-16 10:17:57 +03:00