From 8ca9061b308238ba80d82b6960e79fa1ea5cda92 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 7 Dec 2012 15:48:38 +0000 Subject: fix issues with rec-enabling being done in RT context by splitting it into two parts, an RT-safe and RT-unsafe part. along the way, remove "do not record plugins" option which is just so 1999 and creates problems for various (all?) plugin APIs git-svn-id: svn://localhost/ardour2/branches/3.0@13613 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/diskstream.cc | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'libs/ardour/diskstream.cc') diff --git a/libs/ardour/diskstream.cc b/libs/ardour/diskstream.cc index 553e29244f..f938c09ef3 100644 --- a/libs/ardour/diskstream.cc +++ b/libs/ardour/diskstream.cc @@ -727,3 +727,16 @@ Diskstream::prepare_to_stop (framepos_t pos) { last_recordable_frame = pos + _capture_offset; } + +void +Diskstream::engage_record_enable () +{ + g_atomic_int_set (&_record_enabled, 1); +} + +void +Diskstream::disengage_record_enable () +{ + g_atomic_int_set (&_record_enabled, 0); +} + -- cgit v1.2.3