EXPERIMENTAL! NEEDS TESTING! remove "offset" from almost everything in the process...
[ardour2.git] / gtk2_ardour / export_session_dialog.cc
blob006f9675b3c8640787873920cda5fd32d0fce555
1 /*
2 Copyright (C) 2006 Paul Davis
3 Author: Andre Raue
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 #include "ardour_ui.h"
22 #include "export_session_dialog.h"
24 #include "i18n.h"
26 ExportSessionDialog::ExportSessionDialog (PublicEditor& editor)
27 : ExportDialog(editor)
29 file_frame.set_label (_("Export to File"));
32 void
33 ExportSessionDialog::export_audio_data ()
35 if (getSession().start_audio_export (spec)) {
36 return;
39 gtk_main_iteration ();
40 while (spec.running) {
41 if (gtk_events_pending()) {
42 gtk_main_iteration ();
43 } else {
44 usleep (10000);
50 void
51 ExportSessionDialog::set_range (nframes_t start, nframes_t end)
53 ExportDialog::set_range (start, end);
55 // XXX: this is a hack until we figure out what is really wrong
56 getSession().request_locate (spec.start_frame, false);