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:
21
CUETools.Codecs.LAME/Interop/Format.cs
Normal file
21
CUETools.Codecs.LAME/Interop/Format.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace CUETools.Codecs.LAME.Interop
|
||||
{
|
||||
[StructLayout(LayoutKind.Explicit), Serializable]
|
||||
public class Format
|
||||
{
|
||||
[FieldOffset(0)]
|
||||
public MP3 mp3;
|
||||
[FieldOffset(0)]
|
||||
public LHV1 lhv1;
|
||||
[FieldOffset(0)]
|
||||
public ACC acc;
|
||||
|
||||
public Format(AudioPCMConfig format, uint MpeBitRate, uint quality)
|
||||
{
|
||||
lhv1 = new LHV1(format, MpeBitRate, quality);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user