comparison main/MainWindow.cpp @ 199:6e1d4d500092

* Some export fixes, and avoid clipping on resampling on import
author Chris Cannam
date Mon, 22 Oct 2007 09:45:35 +0000
parents 24ac2e4010c5
children 1871581e4da9
comparison
equal deleted inserted replaced
198:24ac2e4010c5 199:6e1d4d500092
3178 Model *model = DataFileReaderFactory::load 3178 Model *model = DataFileReaderFactory::load
3179 (path, getMainModel()->getSampleRate()); 3179 (path, getMainModel()->getSampleRate());
3180 3180
3181 if (model) { 3181 if (model) {
3182 3182
3183 std::cerr << "MainWindow::openLayer: Have model" << std::endl;
3184
3183 Layer *newLayer = m_document->createImportedLayer(model); 3185 Layer *newLayer = m_document->createImportedLayer(model);
3184 3186
3185 if (newLayer) { 3187 if (newLayer) {
3186 3188
3187 m_document->addLayerToView(pane, newLayer); 3189 m_document->addLayerToView(pane, newLayer);