mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-12-13 21:51:09 +00:00
Fix client warnings
This commit is contained in:
parent
fbdb3e0875
commit
4f3c95c589
2 changed files with 6 additions and 2 deletions
|
@ -422,6 +422,10 @@ static void S_PaintChannelFrom16_scalar( channel_t *ch, const sfx_t *sc, int cou
|
||||||
short *samples;
|
short *samples;
|
||||||
float ooff, fdata[2], fdiv, fleftvol, frightvol;
|
float ooff, fdata[2], fdiv, fleftvol, frightvol;
|
||||||
|
|
||||||
|
if (sc->soundChannels <= 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
samp = &paintbuffer[ bufferOffset ];
|
samp = &paintbuffer[ bufferOffset ];
|
||||||
|
|
||||||
if (ch->doppler) {
|
if (ch->doppler) {
|
||||||
|
|
|
@ -119,7 +119,7 @@ void NXPutc(NXStream *stream, char out) {
|
||||||
|
|
||||||
|
|
||||||
void encodeWavelet( sfx_t *sfx, short *packets) {
|
void encodeWavelet( sfx_t *sfx, short *packets) {
|
||||||
float wksp[4097], temp;
|
float wksp[4097] = {0}, temp;
|
||||||
int i, samples, size;
|
int i, samples, size;
|
||||||
sndBuffer *newchunk, *chunk;
|
sndBuffer *newchunk, *chunk;
|
||||||
byte *out;
|
byte *out;
|
||||||
|
@ -169,7 +169,7 @@ void encodeWavelet( sfx_t *sfx, short *packets) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void decodeWavelet(sndBuffer *chunk, short *to) {
|
void decodeWavelet(sndBuffer *chunk, short *to) {
|
||||||
float wksp[4097];
|
float wksp[4097] = {0};
|
||||||
int i;
|
int i;
|
||||||
byte *out;
|
byte *out;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue