From 5cafad1d81ed0b9b1224ad17b8faae26a6124fa0 Mon Sep 17 00:00:00 2001 From: Kevin Ollivier Date: Wed, 17 Feb 2010 19:07:37 +0000 Subject: [PATCH] Just call Next/PrevFrame now that the audio playing behavior is implemented inside those methods. Originally committed to SVN as r4122. --- aegisub/src/frame_main_events.cpp | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/aegisub/src/frame_main_events.cpp b/aegisub/src/frame_main_events.cpp index 910f8bf7b..e1d20257f 100644 --- a/aegisub/src/frame_main_events.cpp +++ b/aegisub/src/frame_main_events.cpp @@ -1779,13 +1779,6 @@ void FrameMain::OnStatusClear(wxTimerEvent &event) { /// void FrameMain::OnNextFrame(wxCommandEvent &event) { videoBox->videoSlider->NextFrame(); - // FIXME: This is probably not the best place to put this, but I was told - // this code is all undergoing a rewrite, so I consider this a temporary solution. - if (audioBox && Options.AsBool(_T("Audio Plays When Stepping Video"))) { - int start = VFR_Output.GetTimeAtFrame(videoBox->videoDisplay->GetFrame()); - int end = VFR_Output.GetTimeAtFrame(videoBox->videoDisplay->GetFrame() + 1); - audioBox->audioDisplay->Play(start,end); - } } @@ -1795,13 +1788,6 @@ void FrameMain::OnNextFrame(wxCommandEvent &event) { /// void FrameMain::OnPrevFrame(wxCommandEvent &event) { videoBox->videoSlider->PrevFrame(); - // FIXME: This is probably not the best place to put this, but I was told - // this code is all undergoing a rewrite, so I consider this a temporary solution. - if (audioBox && Options.AsBool(_T("Audio Plays When Stepping Video"))) { - int start = VFR_Output.GetTimeAtFrame(videoBox->videoDisplay->GetFrame() - 1); - int end = VFR_Output.GetTimeAtFrame(videoBox->videoDisplay->GetFrame()); - audioBox->audioDisplay->Play(start,end); - } }