directsound: Remove redundant SubFormat copy

This commit is contained in:
Ethan Lee 2022-07-15 23:45:56 -04:00 committed by GitHub
parent c5e408ae98
commit a09d62e4d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -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);