1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-03 17:19:43 +02:00

Bug 96 - "Latency problem" warning when audio is pushed behind zero occurs for both tracks of a stereo pair

This commit is contained in:
James Crook 2017-08-16 15:50:48 +01:00
parent 12410fb552
commit 296ba29a78

View File

@ -2453,10 +2453,14 @@ void AudioIO::StopStream()
track->SetOffset(track->GetStartTime() + recordingOffset);
if(track->GetEndTime() < 0.)
{
wxMessageDialog m(NULL, _(
// Bug 96: Only warn for the first track.
if( i==0 )
{
wxMessageDialog m(NULL, _(
"Latency Correction setting has caused the recorded audio to be hidden before zero.\nAudacity has brought it back to start at zero.\nYou may have to use the Time Shift Tool (<---> or F5) to drag the track to the right place."),
_("Latency problem"), wxOK);
m.ShowModal();
m.ShowModal();
}
// gives NOFAIL-GUARANTEE though we only need STRONG
track->SetOffset(0.);
}