Permalink
Browse files

DirectSound Buffer Size Stopgap (#1507)

This is a temporary workaround to address issues raised in #1508 until a point in time when the sound effects are actually possible to implement.
  • Loading branch information...
RobertBColton committed Jan 21, 2019
1 parent a1aa34d commit cc5ed8ba22f1b25bb6164bfbdf4dc0ff725efa06
Showing with 3 additions and 1 deletion.
  1. +3 −1 ENIGMAsystem/SHELL/Audio_Systems/DirectSound/DSsystem.cpp
@@ -171,7 +171,9 @@ int sound_add_from_buffer(int id, void* buffer, size_t bufsize) {

DSBUFFERDESC bufferDesc = {};
bufferDesc.dwSize = sizeof(DSBUFFERDESC);
bufferDesc.dwFlags = DSBCAPS_CTRLDEFAULT | DSBCAPS_CTRLFX;
// DSBCAPS_CTRLFX causes all kinds of weird nasty shit, please read #1508 on GitHub
// before considering whether to readd it to the dwFlags below
bufferDesc.dwFlags = DSBCAPS_CTRLDEFAULT;
bufferDesc.dwBufferBytes = waveHeader->dataSize;
bufferDesc.dwReserved = 0;
bufferDesc.lpwfxFormat = &waveFormat;

0 comments on commit cc5ed8b

Please sign in to comment.