Commit a09d62e4d81522a04e5bd04346d1b22f02ade890

Ethan Lee 2022-07-15T23:45:56

directsound: Remove redundant SubFormat copy

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/audio/directsound/SDL_directsound.c b/src/audio/directsound/SDL_directsound.c
index 5db1b93..530d566 100644
--- a/src/audio/directsound/SDL_directsound.c
+++ b/src/audio/directsound/SDL_directsound.c
@@ -564,7 +564,6 @@ DSOUND_OpenDevice(_THIS, const char *devname)
                     if (SDL_AUDIO_ISFLOAT(this->spec.format)) {
                         SDL_memcpy(&wfmt.SubFormat, &SDL_KSDATAFORMAT_SUBTYPE_IEEE_FLOAT, sizeof(GUID));
                     } else {
-                        wfmt.SubFormat = SDL_KSDATAFORMAT_SUBTYPE_PCM;
                         SDL_memcpy(&wfmt.SubFormat, &SDL_KSDATAFORMAT_SUBTYPE_PCM, sizeof(GUID));
                     }
                     wfmt.Samples.wValidBitsPerSample = SDL_AUDIO_BITSIZE(this->spec.format);