mirror of
https://github.com/claunia/cuetools.net.git
synced 2025-12-16 18:14:25 +00:00
Fix typos found by codespell
- Typos were found by codespell v1.17.0.dev0 (commit 44fea6d) - Command used: codespell -q 2 \ -L ba,bloc,blocs,doubleclick,dur,fille,frmat,numer,optin,passtime \ -L pres,strack,te,tim,tre,uint,whn \ --skip="*.de-DE.resx,./Bwg*,./Freedb,./MusicBrainz,./ProgressODoom" \ --skip="./ThirdParty"
This commit is contained in:
@@ -221,7 +221,7 @@ namespace CUETools.Codecs
|
||||
int n = have_bits_m >> 3;
|
||||
for (int i = 0; i < n; i++)
|
||||
crc = (ushort)((crc << 8) ^ Crc16.table[(crc >> 8) ^ (byte)(cache_m >> (56 - (i << 3)))]);
|
||||
return Crc16.Substract(crc16_m, crc, n);
|
||||
return Crc16.Subtract(crc16_m, crc, n);
|
||||
}
|
||||
|
||||
public int readbits_signed(int bits)
|
||||
|
||||
@@ -86,7 +86,7 @@ namespace CUETools.Codecs
|
||||
fixed (byte* buf1 = &buffer[0])
|
||||
{
|
||||
if (old_pos % 8 != 0)
|
||||
crc16_m = Crc16.Substract(crc16_m, 0, 1);
|
||||
crc16_m = Crc16.Subtract(crc16_m, 0, 1);
|
||||
crc16_m = Crc16.ComputeChecksum(crc16_m, buf + start1, end - start);
|
||||
AudioSamples.MemCpy(buf1 + start, buf + start1, end - start);
|
||||
buf1[start] |= start_val;
|
||||
|
||||
@@ -130,7 +130,7 @@ namespace CUETools.Codecs
|
||||
return crc1;
|
||||
}
|
||||
|
||||
public static unsafe ushort Substract(ushort crc1, ushort crc2, long len2)
|
||||
public static unsafe ushort Subtract(ushort crc1, ushort crc2, long len2)
|
||||
{
|
||||
crc1 = Crc16.Reflect(crc1);
|
||||
crc2 = Crc16.Reflect(crc2);
|
||||
|
||||
@@ -228,7 +228,7 @@ namespace CUETools.Codecs
|
||||
return crc1;
|
||||
}
|
||||
|
||||
public static unsafe uint Substract(uint crc1, uint crc2, long len2)
|
||||
public static unsafe uint Subtract(uint crc1, uint crc2, long len2)
|
||||
{
|
||||
/* degenerate case */
|
||||
if (len2 == 0)
|
||||
|
||||
@@ -398,7 +398,7 @@ namespace CUETools.Codecs
|
||||
double* lpc_tmp = stackalloc double[MAX_LPC_ORDER];
|
||||
|
||||
if (max_order > MAX_LPC_ORDER)
|
||||
throw new Exception("wierd");
|
||||
throw new Exception("weird");
|
||||
|
||||
for (int i = 0; i < max_order; i++)
|
||||
lpc_tmp[i] = 0;
|
||||
|
||||
Reference in New Issue
Block a user