Skip to content

Commit

Permalink
FEAT(client): Fixed many UI bugs, standalone option is now actually r…
Browse files Browse the repository at this point in the history
…espected (files aren't emitted), hopefully fixed non-Windows builds by adding to EnumStringConversions.cpp
  • Loading branch information
IsaMorphic committed Jan 26, 2023
1 parent 84da087 commit e1b7a9b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 3 additions & 1 deletion src/mumble/EnumStringConversions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@

#define RECORDING_MODE_VALUES \
PROCESS(Settings::RecordingMode, RecordingMixdown, "Mixdown") \
PROCESS(Settings::RecordingMode, RecordingMultichannel, "Multichannel")
PROCESS(Settings::RecordingMode, RecordingMultichannel, "Multichannel") \
PROCESS(Settings::RecordingMode, RecordingMultichannelAndTransport, "MultichannelAndTransport") \
PROCESS(Settings::RecordingMode, RecordingTransportStandalone, "MultichannelAndTransport")

#define SEARCH_USER_ACTION_VALUES \
PROCESS(Search::SearchDialog::UserAction, NONE, "None") \
Expand Down
2 changes: 1 addition & 1 deletion src/mumble/JackAudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1113,7 +1113,7 @@ void JackAudioOutput::prepareOutputBuffers(unsigned int frameCount, QList< Audio
const ClientUser *user = it.key();
AudioOutputBuffer *audio = it.value();

if (!user || (recorder && !recorder->isTransportEnabled())) {
if (!user || !recorder || (recorder && !recorder->isTransportEnabled())) {
if (audio->prepareSampleBuffer(frameCount)) {
qlMix->append(audio);
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/mumble/VoiceRecorder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ void VoiceRecorder::run() {
break;
}

while (!m_abort && !m_recordBuffer.isEmpty()) {
while (!(m_config.mixDownMode && m_config.transportEnable) && !m_abort && !m_recordBuffer.isEmpty()) {
boost::shared_ptr< RecordBuffer > rb;
{
QMutexLocker l(&m_bufferLock);
Expand Down
6 changes: 4 additions & 2 deletions src/mumble/VoiceRecorderDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ VoiceRecorderDialog::VoiceRecorderDialog(QWidget *p) : QDialog(p), qtTimer(new Q
== Settings::RecordingMultichannelAndTransport);
qrbTransportStandalone->setChecked(Global::get().s.rmRecordingMode == Settings::RecordingTransportStandalone);

qgbOutput->setDisabled(qrbTransportStandalone->isChecked());

QString qsTooltip = QString::fromLatin1("%1"
"<table>"
" <tr>"
Expand Down Expand Up @@ -188,7 +190,7 @@ void VoiceRecorderDialog::on_qpbStart_clicked() {
VoiceRecorder::Config config;
config.sampleRate = ao->getMixerFreq();
config.fileName = dir.absoluteFilePath(basename + QLatin1Char('.') + suffix);
config.mixDownMode = qrbDownmix->isChecked();
config.mixDownMode = qrbDownmix->isChecked() || qrbTransportStandalone->isChecked();
config.transportEnable = qrbMultichannelAndTransport->isChecked() || qrbTransportStandalone->isChecked();
config.recordingFormat = static_cast< VoiceRecorderFormat::Format >(ifm);

Expand Down Expand Up @@ -286,7 +288,7 @@ void VoiceRecorderDialog::reset(bool resettimer) {
qpbStop->setText(tr("S&top"));

qgbMode->setEnabled(true);
qgbOutput->setEnabled(true);
qgbOutput->setDisabled(qrbTransportStandalone->isChecked());

if (resettimer)
qlTime->setText(QLatin1String("00:00:00"));
Expand Down

0 comments on commit e1b7a9b

Please sign in to comment.