dolphin/Source
Pokechu22 6de55e416b WaveFile: Fix size check
`count` is the number of stereo samples to write (where each stereo sample is two shorts), while `BUFFER_SIZE` is the size of the buffer in shorts.  So `count` needs to be multiplied by `2`, not `BUFFER_SIZE`.  Also, when this check was failed, the previous code just clobbered whatever was past the end of the buffer after logging the warning, which corrupted `basename`, eventually resulting in Dolphin crashing.

This affected Datel's Wii-compatible Action Replay, which uses a block size of 2298, or 18384 stereo samples, which is 36768 shorts, which is bigger than the buffer size of 32768. (However, the previous commit means that only one block is transfered at a time, eliminating this issue; fixing the bounds check is just a general safety thing instead of an actual bugfix now.)
2022-10-22 11:44:38 -07:00
..
Android Merge pull request #11095 from K0bin/misc-vulkan 2022-10-08 22:24:30 +02:00
Core WaveFile: Fix size check 2022-10-22 11:44:38 -07:00
DSPSpy DSPSpy: Add st3 BLOOP{,I} tests. 2022-09-30 11:07:41 +00:00
DSPTool Remove most uses of StringFromFormat in favor of fmt 2022-10-12 16:50:47 -07:00
PCH msbuild: refactor to reduce rebuild events 2022-08-02 22:24:22 -07:00
UnitTests VertexLoaderTest: Add NormalAll 2022-09-18 23:33:23 -07:00
VSProps Revert "Android: Don't hold gameFileCache lock during updateAdditionalMetadata" 2022-09-27 19:06:05 +02:00
.clang-format Replace Cpp11 (A Deprecated alias for Latest) in .clang-format 2022-06-22 08:57:32 +10:00
CMakeLists.txt Revert "Android: Don't hold gameFileCache lock during updateAdditionalMetadata" 2022-09-27 19:06:05 +02:00
dolphin-emu.sln replace libpng with libspng 2022-07-25 18:32:16 -07:00