1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-02-15 23:44:59 +01:00

bug 26 - add modeless warning dialog for missing aliased files during playback.

This commit is contained in:
mchinen
2011-03-01 01:29:03 +00:00
parent 26786aff95
commit 5e4250e302
7 changed files with 97 additions and 4 deletions

View File

@@ -34,9 +34,11 @@ The summary is eventually computed and written to a file in a background thread.
#include "../Internat.h"
#include "../ondemand/ODManager.h"
#include "../AudioIO.h"
//#include <errno.h>
extern AudioIO *gAudioIO;
const int aheaderTagLen = 20;
char aheaderTag[aheaderTagLen + 1] = "AudacityBlockFile112";
@@ -631,6 +633,9 @@ int ODPCMAliasBlockFile::ReadData(samplePtr data, sampleFormat format,
memset(data,0,SAMPLE_SIZE(format)*len);
mSilentAliasLog=TRUE;
// Set a marker to display an error message
if (gAudioIO)
gAudioIO->MarkAliasedFilesMissingWarning();
UnlockRead();
return len;