X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Fcinema_sound_processor.cc;h=0b00ee2ee237f90a9d056e17e3cd92fc3a095b9f;hp=6a79051145e81e33ff998cacf1f4f7e21cb6c7d7;hb=3828baf56467224f5d44049bf1e7a7ed11f43a05;hpb=f4030653da8f5a0b3daebe640f485b3daf9ef091 diff --git a/src/lib/cinema_sound_processor.cc b/src/lib/cinema_sound_processor.cc index 6a7905114..0b00ee2ee 100644 --- a/src/lib/cinema_sound_processor.cc +++ b/src/lib/cinema_sound_processor.cc @@ -1,19 +1,20 @@ /* Copyright (C) 2012-2014 Carl Hetherington - This program is free software; you can redistribute it and/or modify + This file is part of DCP-o-matic. + + DCP-o-matic is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, + DCP-o-matic is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + along with DCP-o-matic. If not, see . */ @@ -21,10 +22,11 @@ * @brief CinemaSoundProcessor class. */ -#include -#include #include "cinema_sound_processor.h" #include "dolby_cp750.h" +#include "dcpomatic_assert.h" +#include +#include using namespace std; @@ -98,6 +100,6 @@ CinemaSoundProcessor::as_index (CinemaSoundProcessor const * s) CinemaSoundProcessor const * CinemaSoundProcessor::from_index (int i) { - assert (i <= int(_cinema_sound_processors.size ())); + DCPOMATIC_ASSERT (i <= int(_cinema_sound_processors.size ())); return _cinema_sound_processors[i]; }