mirror of
https://github.com/claunia/cuetools.net.git
synced 2025-12-16 18:14:25 +00:00
The copyright year was last time updated in 2018. There is some cleanup
involved in this commit and the next copyright year update is supposed
to be simpler (i.e. substitute "-2020").
- Substitute occurrences of "-2018" with "-2020" using:
git grep -I -l -e '-2018' -- ':(exclude)*.bak' | xargs \
sed -b -i -e 's/-2018/-2020/g'
- Update special cases:
CUEPlayer
git grep -I -l -e 'Grigory Chudov 2010' -- | xargs \
sed -b -i -e 's/Grigory Chudov 2010/2010-2020 Grigory Chudov/g'
CUERipper
git grep -I -l -e '2008-2009' -- | xargs \
sed -b -i -e 's/2008-2009/2008-2020/g'
CUETools, CUETools.FLACCL.cmd
git grep -I -l -e '2008-2010' -- ':(exclude)*FlaCuda*' | xargs \
sed -b -i -e 's/2008-2010/2008-2020/g'
git grep -I -l -e '2010-2013' -- | xargs \
sed -b -i -e 's/2010-2013/2010-2020/g'
CUETools.ChaptersToCue
git grep -I -l -e 'Grigory Chudov 2017' -- | xargs \
sed -b -i -e 's/Grigory Chudov 2017/2017-2020 Grigory Chudov/g'
CUETools.CTDB.EACPlugin
git grep -I -l -e 'Grigory Chudov 2012' -- | xargs \
sed -b -i -e 's/Grigory Chudov 2012/2012-2020 Grigory Chudov/g'
git grep -I -l -e '2011-12' -- | xargs \
sed -b -i -e 's/2011-12/2011-2020/g'
CUETools.Codecs.FLACCL
git grep -I -l -e '2009-2010' -- ':(exclude)*FlaCuda*' | xargs \
sed -b -i -e 's/2009-2010/2009-2020/g'
CUETools.eac3ui (BluTools)
git grep -I -l -e '© 2018' -- | xargs \
sed -b -i -e 's/© 2018/© 2018-2020 Grigory Chudov/g'
CUETools.Flake
git grep -I -l -e ' 2009-2014 Gr' -- | xargs \
sed -b -i -e 's/ 2009-2014 Gr/ 2009-2020 Gr/g'
CUETools.Processor
git grep -I -l -e ' 2008-2013 Gr' -- | xargs \
sed -b -i -e 's/ 2008-2013 Gr/ 2008-2020 Gr/g'
CUETools.Ripper.Console
git grep -I -l -e ' 2008-10 Gr' -- | xargs \
sed -b -i -e 's/ 2008-10 Gr/ 2008-2020 Gr/g'
CUETools.Ripper.Console, CUETools.Ripper.SCSI
git grep -I -l -e ' 2008-13 Gr' -- | xargs \
sed -b -i -e 's/ 2008-13 Gr/ 2008-2020 Gr/g'
Single year entries: 2008, 2009, 2010, 2011, 2017, 2018
git grep -I -l -e ' 2008 Gr' -- | xargs \
sed -b -i -e 's/ 2008 Gr/ 2008-2020 Gr/g'
git grep -I -l -e ' 2009 Gr' -- ':(exclude)*FlaCuda*' | xargs \
sed -b -i -e 's/ 2009 Gr/ 2009-2020 Gr/g'
git grep -I -l -e ' 2010 Gr' -- | xargs \
sed -b -i -e 's/ 2010 Gr/ 2010-2020 Gr/g'
git grep -I -l -e ' 2011 Gr' -- | xargs \
sed -b -i -e 's/ 2011 Gr/ 2011-2020 Gr/g'
git grep -I -l -e ' 2017 Gr' -- | xargs \
sed -b -i -e 's/ 2017 Gr/ 2017-2020 Gr/g'
git grep -I -l -e ' 2018 Gr' -- | xargs \
sed -b -i -e 's/ 2018 Gr/ 2018-2020 Gr/g'
Fix typo in copyright year of CUETools.Codecs.WMA/AudioDecoder.cs:
Copyright (c) 20139 Grigory Chudov
git grep -I -lw -e '20139' -- | xargs \
sed -b -i -e 's/20139/2013-2020/g'
55 lines
1.8 KiB
C#
55 lines
1.8 KiB
C#
/**
|
|
* CUETools.Codecs.ALAC: pure managed ALAC audio encoder
|
|
* Copyright (c) 2009-2020 Grigory Chudov
|
|
* Based on ffdshow ALAC audio encoder
|
|
* Copyright (c) 2008 Jaikrishnan Menon, realityman@gmx.net
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
*
|
|
* This library 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
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
*/
|
|
using System;
|
|
|
|
namespace CUETools.Codecs.ALAC
|
|
{
|
|
public class Alac
|
|
{
|
|
public const int MAX_BLOCKSIZE = 65535;
|
|
public const int MAX_RICE_PARAM = 14;
|
|
public const int MAX_PARTITION_ORDER = 8;
|
|
public const int MAX_PARTITIONS = 1 << MAX_PARTITION_ORDER;
|
|
|
|
public const uint UINT32_MAX = 0xffffffff;
|
|
|
|
public static StereoMethod LookupStereoMethod(string name)
|
|
{
|
|
return (StereoMethod)(Enum.Parse(typeof(StereoMethod), name, true));
|
|
}
|
|
|
|
public static OrderMethod LookupOrderMethod(string name)
|
|
{
|
|
return (OrderMethod)(Enum.Parse(typeof(OrderMethod), name, true));
|
|
}
|
|
|
|
public static WindowFunction LookupWindowFunction(string name)
|
|
{
|
|
return (WindowFunction)(Enum.Parse(typeof(WindowFunction), name, true));
|
|
}
|
|
|
|
public static WindowMethod LookupWindowMethod(string name)
|
|
{
|
|
return (WindowMethod)(Enum.Parse(typeof(WindowMethod), name, true));
|
|
}
|
|
}
|
|
}
|