64 Bit-Safe Updates

Imported Icculus' 64-bit changes.

Changes `[un]signed long` data types to `[un]signed int`.
This commit is contained in:
Jacob Coby
2024-04-29 14:10:09 -04:00
parent aa7407a8d5
commit a6a6869a7e
57 changed files with 247 additions and 247 deletions

View File

@@ -1,5 +1,5 @@
/*
* Descent 3
* Descent 3
* Copyright (C) 2024 Parallax Software
*
* This program is free software: you can redistribute it and/or modify
@@ -993,7 +993,7 @@ void EncodeFlush(Encoder &enc) {
ProcessBlock(enc);
}
unsigned long AudioEncode(ReadSampleFunction *read, void *data, unsigned channels, unsigned sample_rate, float volume,
unsigned int AudioEncode(ReadSampleFunction *read, void *data, unsigned channels, unsigned sample_rate, float volume,
FILE *out, int levels, int samples_per_subband, float comp_ratio) {
Encoder enc;
memset(&enc, 0, sizeof(enc));