diff options
author | Carl Hetherington <carl@carlh.net> | 2007-05-11 15:06:12 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2007-05-11 15:06:12 +0000 |
commit | 90f3128d73bc32288d8ce99e81255ea02f54ffbc (patch) | |
tree | 9855f12788411cd8c17e078a276b6dc02de067d4 /libs/ardour/session_process.cc | |
parent | 7f3c381a3acd8e605be76f1ba0ec7f1a7e11373f (diff) |
Add some comments.
git-svn-id: svn://localhost/ardour2/trunk@1837 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/session_process.cc')
-rw-r--r-- | libs/ardour/session_process.cc | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/libs/ardour/session_process.cc b/libs/ardour/session_process.cc index 4f82de1c0e..5a8d80b58c 100644 --- a/libs/ardour/session_process.cc +++ b/libs/ardour/session_process.cc @@ -44,6 +44,9 @@ using namespace ARDOUR; using namespace PBD; using namespace std; +/** Called by the audio engine when there is work to be done with JACK. + * @param nframes Number of frames to process. + */ void Session::process (nframes_t nframes) { @@ -255,7 +258,7 @@ Session::commit_diskstreams (nframes_t nframes, bool &needs_butler) } } - +/** Process callback used when the auditioner is not active */ void Session::process_with_events (nframes_t nframes) { @@ -354,6 +357,8 @@ Session::process_with_events (nframes_t nframes) offset = 0; + /* yes folks, here it is, the actual loop where we really truly + process some audio */ while (nframes) { this_nframes = nframes; /* real (jack) time relative */ @@ -804,6 +809,9 @@ Session::process_without_events (nframes_t nframes) summon_butler (); } +/** Process callback used when the auditioner is active. + * @param nframes number of frames to process. + */ void Session::process_audition (nframes_t nframes) { @@ -840,6 +848,7 @@ Session::process_audition (nframes_t nframes) } if (!auditioner->active()) { + /* auditioner no longer active, so go back to the normal process callback */ process_function = &Session::process_with_events; } } |