Skip to content

Commit

Permalink
fix MSVC warning C4244, ALfloat <- double
Browse files Browse the repository at this point in the history
  • Loading branch information
ericoporto authored and icculus committed Jul 1, 2023
1 parent 99f5970 commit 8a40e88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mojoal.c
Original file line number Diff line number Diff line change
Expand Up @@ -1254,7 +1254,7 @@ static void pitch_shift(ALsource *src, const ALbuffer *buffer, int numSampsToPro
/* do windowing and re,im interleave */
for (k = 0; k < pitch_framesize;k++) {
window = -.5*SDL_cos(2.*M_PI*(double)k/(double)pitch_framesize)+.5;
state->workspace[2*k] = (ALfloat) state->infifo[k] * window;
state->workspace[2*k] = (ALfloat) (state->infifo[k] * window);
state->workspace[2*k+1] = 0.0f;
}

Expand Down

0 comments on commit 8a40e88

Please sign in to comment.