mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-09 13:12:17 +01:00
bug 26 followup - warn of missing alias on variety of instances (export/import/effect/mix,) in addition to first time the read fails.\nIn addition make sure there is only one warning on the screen at a time, bringing the old one to the foreground (although for things like export/effect there will be a progress bar in front of it, the missing files dialog will be above the project window when it finishes)
This commit is contained in:
@@ -479,14 +479,15 @@ void DeinitAudioIO()
|
||||
|
||||
void AudioIO::MarkAliasedFilesMissingWarning()
|
||||
{
|
||||
// only show the warning when we are playing or recording
|
||||
if (IsStreamActive()) {
|
||||
m_aliasMissingWarning = true;
|
||||
}
|
||||
m_aliasMissingWarning = true;
|
||||
}
|
||||
|
||||
void AudioIO::SetMissingAliasedFileWarningShouldShow(bool b)
|
||||
{
|
||||
// Note that this is can be called by both the main thread and other threads.
|
||||
// I don't believe we need a mutex because we are checking zero vs non-zero,
|
||||
// and the setting from other threads will always be non-zero (true), and the
|
||||
// setting from the main thread is always false.
|
||||
m_aliasMissingWarningShouldShow = b;
|
||||
// reset the warnings as they were probably marked by a previous run
|
||||
if (m_aliasMissingWarningShouldShow) {
|
||||
@@ -501,6 +502,17 @@ bool AudioIO::ShouldShowMissingAliasedFileWarning()
|
||||
return ret;
|
||||
}
|
||||
|
||||
void AudioIO::SetMissingAliasFileDialog(wxDialog *dialog)
|
||||
{
|
||||
m_aliasMissingWarningDialog = dialog;
|
||||
}
|
||||
|
||||
wxDialog *AudioIO::GetMissingAliasFileDialog()
|
||||
{
|
||||
return m_aliasMissingWarningDialog;
|
||||
}
|
||||
|
||||
|
||||
wxString DeviceName(const PaDeviceInfo* info)
|
||||
{
|
||||
wxString infoName(info->name, wxConvLocal);
|
||||
@@ -534,8 +546,9 @@ AudioIO::AudioIO()
|
||||
mAudioThreadFillBuffersLoopActive = false;
|
||||
mPortStreamV19 = NULL;
|
||||
|
||||
m_aliasMissingWarningShouldShow = false;
|
||||
m_aliasMissingWarningShouldShow = true;
|
||||
m_aliasMissingWarning = false;
|
||||
m_aliasMissingWarningDialog = NULL;
|
||||
|
||||
#ifdef EXPERIMENTAL_MIDI_OUT
|
||||
mMidiStream = NULL;
|
||||
|
||||
Reference in New Issue
Block a user