forked from soiaf/C-Sharp-WavPack-Decoder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
WavpackContext.cs
37 lines (32 loc) · 938 Bytes
/
WavpackContext.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
** WavpackContext.cs
**
** Copyright (c) 2010-2016 Peter McQuillan
**
** All Rights Reserved.
**
** Distributed under the BSD Software License (see license.txt)
***/
namespace WavPack
{
public class WavpackContext
{
internal WavpackConfig config = new WavpackConfig();
internal WavpackStream stream = new WavpackStream();
internal byte[] read_buffer = new byte[Defines.BITSTREAM_BUFFER_SIZE];
internal string error_message;
internal System.IO.BinaryReader infile;
internal long total_samples, crc_errors; // was uint32_t in C
internal int open_flags, norm_offset;
internal int reduced_channels = 0;
internal bool lossy_blocks;
internal int status = 0; // 0 ok, 1 error
internal bool five = false;
// optional = new
internal eFileFormat file_format = eFileFormat.WAV;
internal string file_extension = null;
internal byte[] header;
internal byte[] trailer;
internal uint dsd_multiplier;
}
}