comparison main/MainWindow.cpp @ 1429:3e2dee09c10c levelpanwidget

Merge from branch 3.0-integration
author Chris Cannam
date Wed, 14 Dec 2016 14:28:41 +0000
parents 4c5533df5d72 2dd0bc9f8fd4
children f013210eeceb
comparison
equal deleted inserted replaced
1394:db151fd29091 1429:3e2dee09c10c
2405 return; 2405 return;
2406 } 2406 }
2407 2407
2408 QString description; 2408 QString description;
2409 2409
2410 //!!!???
2411
2410 sv_samplerate_t ssr = getMainModel()->getSampleRate(); 2412 sv_samplerate_t ssr = getMainModel()->getSampleRate();
2411 sv_samplerate_t tsr = ssr; 2413 sv_samplerate_t tsr = ssr;
2412 if (m_playSource) tsr = m_playSource->getTargetSampleRate(); 2414 if (m_playSource) tsr = m_playSource->getDeviceSampleRate();
2413 2415
2414 if (ssr != tsr) { 2416 if (ssr != tsr) {
2415 description = tr("%1Hz (resampling to %2Hz)").arg(ssr).arg(tsr); 2417 description = tr("%1Hz (resampling to %2Hz)").arg(ssr).arg(tsr);
2416 } else { 2418 } else {
2417 description = QString("%1Hz").arg(ssr); 2419 description = QString("%1Hz").arg(ssr);
2947 void 2949 void
2948 MainWindow::browseRecordedAudio() 2950 MainWindow::browseRecordedAudio()
2949 { 2951 {
2950 if (!m_recordTarget) return; 2952 if (!m_recordTarget) return;
2951 2953
2952 QString path = m_recordTarget->getRecordFolder(); 2954 QString path = m_recordTarget->getRecordContainerFolder();
2955 if (path == "") path = m_recordTarget->getRecordFolder();
2953 if (path == "") return; 2956 if (path == "") return;
2954 2957
2955 openLocalFolder(path); 2958 openLocalFolder(path);
2956 } 2959 }
2957 2960
4603 return; 4606 return;
4604 } 4607 }
4605 4608
4606 m_preferencesDialog = new PreferencesDialog(this); 4609 m_preferencesDialog = new PreferencesDialog(this);
4607 4610
4611 connect(m_preferencesDialog, SIGNAL(audioDeviceChanged()),
4612 this, SLOT(recreateAudioIO()));
4613
4608 // DeleteOnClose is safe here, because m_preferencesDialog is a 4614 // DeleteOnClose is safe here, because m_preferencesDialog is a
4609 // QPointer that will be zeroed when the dialog is deleted. We 4615 // QPointer that will be zeroed when the dialog is deleted. We
4610 // use it in preference to leaving the dialog lying around because 4616 // use it in preference to leaving the dialog lying around because
4611 // if you Cancel the dialog, it resets the preferences state 4617 // if you Cancel the dialog, it resets the preferences state
4612 // without resetting its own widgets, so its state will be 4618 // without resetting its own widgets, so its state will be