mirror of
https://github.com/claunia/cuetools.net.git
synced 2025-12-16 18:14:25 +00:00
Refactored the LAME interop.
This commit is contained in:
27
CUETools.Codecs.LAME/Interop/BE_CONFIG.cs
Normal file
27
CUETools.Codecs.LAME/Interop/BE_CONFIG.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace CUETools.Codecs.LAME.Interop
|
||||
{
|
||||
[StructLayout(LayoutKind.Sequential), Serializable]
|
||||
public class BE_CONFIG
|
||||
{
|
||||
// encoding formats
|
||||
public const uint BE_CONFIG_MP3 = 0;
|
||||
public const uint BE_CONFIG_LAME = 256;
|
||||
|
||||
public uint dwConfig;
|
||||
public Format format;
|
||||
|
||||
public BE_CONFIG(AudioPCMConfig format, uint MpeBitRate, uint quality)
|
||||
{
|
||||
this.dwConfig = BE_CONFIG_LAME;
|
||||
this.format = new Format(format, MpeBitRate, quality);
|
||||
}
|
||||
|
||||
public BE_CONFIG(AudioPCMConfig format)
|
||||
: this(format, 0, 5)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user