Skip to content

Commit

Permalink
Fix reading of WAV loop region length
Browse files Browse the repository at this point in the history
  • Loading branch information
walbourn committed Sep 28, 2020
1 parent 1982d23 commit ab7ce2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions XAudio2/Common/WAVFileReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
//-------------------------------------------------------------------------------------

#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <Windows.h>

#include <assert.h>

Expand Down Expand Up @@ -416,7 +416,7 @@ namespace
{
// Return 'forward' loop
*pLoopStart = loops[j].start;
*pLoopLength = loops[j].end + loops[j].start + 1;
*pLoopLength = loops[j].end - loops[j].start + 1;
return S_OK;
}
}
Expand Down

0 comments on commit ab7ce2c

Please sign in to comment.