diff options
author | Robin Gareus <robin@gareus.org> | 2020-04-07 03:56:10 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-04-07 03:58:31 +0200 |
commit | b5ca7d352a53832cbf9c55959566321f5cc2a9c8 (patch) | |
tree | 71dfc811622244e9eab7a21634e4bb628866eec8 /libs/ardour/ardour/meter.h | |
parent | f24cabe9e9fcbdd2877b9d382935ef499fb599ba (diff) |
Atomically reset peak meters #7465
Diffstat (limited to 'libs/ardour/ardour/meter.h')
-rw-r--r-- | libs/ardour/ardour/meter.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/ardour/ardour/meter.h b/libs/ardour/ardour/meter.h index 47a96da95a..d5ba27dbf8 100644 --- a/libs/ardour/ardour/meter.h +++ b/libs/ardour/ardour/meter.h @@ -2,7 +2,7 @@ * Copyright (C) 2006-2012 David Robillard <d@drobilla.net> * Copyright (C) 2007-2017 Paul Davis <paul@linuxaudiosystems.com> * Copyright (C) 2009-2011 Carl Hetherington <carl@carlh.net> - * Copyright (C) 2013-2019 Robin Gareus <robin@gareus.org> + * Copyright (C) 2013-2020 Robin Gareus <robin@gareus.org> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -97,8 +97,8 @@ private: */ ChanCount current_meters; - bool _reset_dpm; - bool _reset_max; + volatile gint _reset_dpm; + volatile gint _reset_max; uint32_t _bufcnt; std::vector<float> _peak_buffer; // internal, integrate |