diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2009-09-17 14:10:27 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2009-09-17 14:10:27 +0000 |
commit | 9bca2cd6f869c7651418b21d0523ed6ac19390cc (patch) | |
tree | 2f7234d65a63d4dbf78b07dadada16a2dc2cf8fe /libs/ardour/ardour/session.h | |
parent | 58c2acc99ef442f1a7627d6746f10084889f478a (diff) |
more NSD hacks, including a new exception thrown when loading a session at a different SR than JACK, and the user opts not to load it
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@5672 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/session.h')
-rw-r--r-- | libs/ardour/ardour/session.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/ardour/ardour/session.h b/libs/ardour/ardour/session.h index 42095004fc..eb806c8b7f 100644 --- a/libs/ardour/ardour/session.h +++ b/libs/ardour/ardour/session.h @@ -656,6 +656,12 @@ class Session : public PBD::StatefulDestructible static sigc::signal<int,nframes_t, nframes_t> AskAboutSampleRateMismatch; + class SRMismatchRejected : public std::exception { + public: + SRMismatchRejected () {} + const char* what() const throw() { return "Sample rate mismatch rejected"; } + }; + /* handlers should return !0 for use pending state, 0 for ignore it. */ |