1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-04-26 16:03:53 +02:00

Updated to build with later compiler versions

No functional changes.

(Heck, do we even need this anymore???)
This commit is contained in:
lllucius@gmail.com
2014-11-14 15:59:47 +00:00
parent 7237236298
commit d2bfb4ac4b

View File

@@ -240,13 +240,16 @@ int QTImportFileHandle::Import(TrackFactory *trackFactory,
UInt32 maxSampleSize;
UInt32 numchan;
UInt32 bufsize;
bool res = false;
CreateProgress();
do
{
err = MovieAudioExtractionBegin(mMovie, 0, &maer);
if (err != noErr) {
wxMessageBox(_("Unable to start QuickTime extraction"));
goto done;
break;
}
err = MovieAudioExtractionSetProperty(maer,
@@ -256,7 +259,7 @@ int QTImportFileHandle::Import(TrackFactory *trackFactory,
&quality);
if (err != noErr) {
wxMessageBox(_("Unable to set QuickTime render quality"));
goto done;
break;
}
err = MovieAudioExtractionSetProperty(maer,
@@ -266,7 +269,7 @@ int QTImportFileHandle::Import(TrackFactory *trackFactory,
&discrete);
if (err != noErr) {
wxMessageBox(_("Unable to set QuickTime discrete channels property"));
goto done;
break;
}
err = MovieAudioExtractionGetProperty(maer,
@@ -277,7 +280,7 @@ int QTImportFileHandle::Import(TrackFactory *trackFactory,
NULL);
if (err != noErr) {
wxMessageBox(_("Unable to get QuickTime sample size property"));
goto done;
break;
}
err = MovieAudioExtractionGetProperty(maer,
@@ -288,7 +291,7 @@ int QTImportFileHandle::Import(TrackFactory *trackFactory,
NULL);
if (err != noErr) {
wxMessageBox(_("Unable to retrieve stream description"));
goto done;
break;
}
numchan = desc.mChannelsPerFrame;
@@ -393,6 +396,7 @@ int QTImportFileHandle::Import(TrackFactory *trackFactory,
if (res) {
AddMetadata(tags);
}
} while (false);
done:
@@ -405,8 +409,8 @@ done:
static const struct
{
OSType key;
wxChar *name;
const OSType key;
const wxChar *name;
}
names[] =
{