887 |
} |
} |
888 |
// cleanup |
// cleanup |
889 |
sf_close(hFile); |
sf_close(hFile); |
890 |
|
// let the sampler re-cache the sample if needed |
891 |
|
sample_changed_signal.emit(iter->gig_sample); |
892 |
// on success we remove the sample from the import queue, |
// on success we remove the sample from the import queue, |
893 |
// otherwise keep it, maybe it works the next time ? |
// otherwise keep it, maybe it works the next time ? |
894 |
std::list<SampleImportItem>::iterator cur = iter; |
std::list<SampleImportItem>::iterator cur = iter; |
1875 |
return region_changed_signal; |
return region_changed_signal; |
1876 |
} |
} |
1877 |
|
|
1878 |
|
sigc::signal<void, gig::Sample*>& MainWindow::signal_sample_changed() { |
1879 |
|
return sample_changed_signal; |
1880 |
|
} |
1881 |
|
|
1882 |
sigc::signal<void, gig::Sample*/*old*/, gig::Sample*/*new*/>& MainWindow::signal_sample_ref_changed() { |
sigc::signal<void, gig::Sample*/*old*/, gig::Sample*/*new*/>& MainWindow::signal_sample_ref_changed() { |
1883 |
return sample_ref_changed_signal; |
return sample_ref_changed_signal; |
1884 |
} |
} |