fix: voice playback coordinate bug + debug logging + device name encoding

- messagedelegate: editorEvent now adjusts me->pos() by option.rect.topLeft()
- voiceplayback: enhanced debug logging for file open/decode/play
- messagelist: debug voice file path + exists check
- inputbar: debug mediaDir path on record
- sound_manager: debug in playRawPcm, decodeDeviceName() for mixed encodings
- voiceencoder: debug file write path
This commit is contained in:
Evgeny committed 2026-07-27 00:22:00 +03:00
1 parent 324d285145
commit 01012675d0
6 files changed
+45 -9

No files matched your search

+3
View File
@@ -15,6 +15,7 @@
#include <QApplication>
#include <QLabel>
#include <QResizeEvent>
#include <QDir>
static QPushButton *makeIconBtn(const QString &text, const QString &tooltip, QWidget *parent) {
auto *btn = new QPushButton(text, parent);
@@ -214,6 +215,8 @@ void InputBar::onPttReleased() {
QString mediaPath = m_mediaDirBase + "/" + m_channelIdForRecord;
VoiceEncoder::ensureMediaDir(mediaPath);
qDebug("InputBar::onPttReleased: mediaDir=%s exists=%d channel=%s",
qPrintable(mediaPath), QDir(mediaPath).exists(), qPrintable(m_channelIdForRecord));
QString fileName = VoiceEncoder::generateFileName();
QString filePath = mediaPath + "/" + fileName;