kopia lustrzana https://gitlab.com/eliggett/wfview
Hopefully fix audio.
rodzic
1177fa3419
commit
acaed4601e
|
@ -115,6 +115,7 @@ void cwSidetone::send(QString text)
|
|||
buffer.clear();
|
||||
QString currentChar;
|
||||
int pos = 0;
|
||||
outputDevice = output->start();
|
||||
while (pos < text.size())
|
||||
{
|
||||
QChar ch = text.at(pos).toUpper();
|
||||
|
@ -133,7 +134,6 @@ void cwSidetone::send(QString text)
|
|||
generateMorse(currentChar);
|
||||
pos++;
|
||||
}
|
||||
outputDevice = output->start();
|
||||
if (outputDevice != Q_NULLPTR) {
|
||||
qint64 written = outputDevice->write(buffer);
|
||||
while (written < buffer.size())
|
||||
|
@ -145,6 +145,7 @@ void cwSidetone::send(QString text)
|
|||
}
|
||||
//qInfo(logCW()) << "Sending" << this->currentChar;
|
||||
emit finished();
|
||||
output->stop();
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -2439,8 +2439,8 @@ void wfmain::loadSettings()
|
|||
settings->beginGroup("Keyer");
|
||||
cw->setCutNumbers(settings->value("CutNumbers", false).toBool());
|
||||
cw->setSendImmediate(settings->value("SendImmediate", false).toBool());
|
||||
cw->setSidetoneEnable(settings->value("SidetoneEnabled", false).toBool());
|
||||
cw->setSidetoneLevel(settings->value("SidetoneLevel", 0).toInt());
|
||||
cw->setSidetoneEnable(settings->value("SidetoneEnabled", true).toBool());
|
||||
cw->setSidetoneLevel(settings->value("SidetoneLevel", 100).toInt());
|
||||
int numMemories = settings->beginReadArray("macros");
|
||||
if(numMemories==10)
|
||||
{
|
||||
|
|
Ładowanie…
Reference in New Issue