From f6fdd8dcbf41f864e9f0cc32dabe81fe3533ddfe Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 17 Dec 2009 18:24:23 +0000 Subject: switch to using boost::signals2 instead of sigc++, at least for libardour. not finished yet, but compiles, loads sessions, records and can close a session without a crash git-svn-id: svn://localhost/ardour2/branches/3.0@6372 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/rhythm_ferret.cc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'gtk2_ardour/rhythm_ferret.cc') diff --git a/gtk2_ardour/rhythm_ferret.cc b/gtk2_ardour/rhythm_ferret.cc index 1f38bb8992..f6619fcb8b 100644 --- a/gtk2_ardour/rhythm_ferret.cc +++ b/gtk2_ardour/rhythm_ferret.cc @@ -230,7 +230,7 @@ RhythmFerret::get_action () const void RhythmFerret::run_analysis () { - if (!session) { + if (!_session) { return; } @@ -268,7 +268,7 @@ RhythmFerret::run_analysis () int RhythmFerret::run_percussion_onset_analysis (boost::shared_ptr readable, nframes64_t offset, AnalysisFeatureList& results) { - TransientDetector t (session->frame_rate()); + TransientDetector t (_session->frame_rate()); for (uint32_t i = 0; i < readable->n_channels(); ++i) { @@ -295,7 +295,7 @@ RhythmFerret::run_percussion_onset_analysis (boost::shared_ptr readabl } if (!results.empty()) { - TransientDetector::cleanup_transients (results, session->frame_rate(), trigger_gap_adjustment.get_value()); + TransientDetector::cleanup_transients (results, _session->frame_rate(), trigger_gap_adjustment.get_value()); } return 0; @@ -322,7 +322,7 @@ int RhythmFerret::run_note_onset_analysis (boost::shared_ptr readable, nframes64_t offset, AnalysisFeatureList& results) { try { - OnsetDetector t (session->frame_rate()); + OnsetDetector t (_session->frame_rate()); for (uint32_t i = 0; i < readable->n_channels(); ++i) { @@ -356,7 +356,7 @@ RhythmFerret::run_note_onset_analysis (boost::shared_ptr readable, nfr } if (!results.empty()) { - OnsetDetector::cleanup_onsets (results, session->frame_rate(), trigger_gap_adjustment.get_value()); + OnsetDetector::cleanup_onsets (results, _session->frame_rate(), trigger_gap_adjustment.get_value()); } return 0; @@ -365,7 +365,7 @@ RhythmFerret::run_note_onset_analysis (boost::shared_ptr readable, nfr void RhythmFerret::do_action () { - if (!session || current_results.empty()) { + if (!_session || current_results.empty()) { return; } @@ -390,7 +390,7 @@ RhythmFerret::do_split_action () return; } - session->begin_reversible_command (_("split regions (rhythm ferret)")); + _session->begin_reversible_command (_("split regions (rhythm ferret)")); for (RegionSelection::iterator i = regions.begin(); i != regions.end(); ) { @@ -408,7 +408,7 @@ RhythmFerret::do_split_action () i = tmp; } - session->commit_reversible_command (); + _session->commit_reversible_command (); } void -- cgit v1.2.3