mirror of
https://github.com/claunia/cuetools.net.git
synced 2025-12-16 18:14:25 +00:00
- Substitute occurrences of "-2020" with "-2021" using: git grep -I -l -e '-2020' -- ':(exclude)*.bak' | xargs \ sed -b -i -e 's/-2020/-2021/g'
55 lines
1.8 KiB
C#
55 lines
1.8 KiB
C#
/**
|
|
* CUETools.Codecs.ALAC: pure managed ALAC audio encoder
|
|
* Copyright (c) 2009-2021 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));
|
|
}
|
|
}
|
|
}
|