Skip to content

Commit

Permalink
fix devide by zero
Browse files Browse the repository at this point in the history
  • Loading branch information
Nummer committed Jan 27, 2016
1 parent 36c6124 commit 0e7ff87
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/3rd party/OpenAL/OpenAL-Windows/Alu/ALu.c
Expand Up @@ -429,6 +429,9 @@ ALUAPI ALvoid ALUAPIENTRY aluMixData(ALvoid *context,ALvoid *buffer,ALsizei size
DataPos64=DataPosInt;
DataPos64<<=FRACTIONBITS;
DataPos64+=DataPosFrac;
//FIX DEVIDE BY ZERO (NUMMER)
if (increment == 0)
increment = 1;
BufferSize=(ALuint)((DataSize64-DataPos64)/increment);
BufferListItem = ALSource->queue;
for (loop = 0; loop < ALSource->BuffersAddedToDSBuffer; loop++)
Expand Down

0 comments on commit 0e7ff87

Please sign in to comment.