mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-23 13:35:40 +00:00
directsound: Remove redundant SubFormat copy
This commit is contained in:
parent
c5e408ae98
commit
a09d62e4d8
|
@ -564,7 +564,6 @@ DSOUND_OpenDevice(_THIS, const char *devname)
|
||||||
if (SDL_AUDIO_ISFLOAT(this->spec.format)) {
|
if (SDL_AUDIO_ISFLOAT(this->spec.format)) {
|
||||||
SDL_memcpy(&wfmt.SubFormat, &SDL_KSDATAFORMAT_SUBTYPE_IEEE_FLOAT, sizeof(GUID));
|
SDL_memcpy(&wfmt.SubFormat, &SDL_KSDATAFORMAT_SUBTYPE_IEEE_FLOAT, sizeof(GUID));
|
||||||
} else {
|
} else {
|
||||||
wfmt.SubFormat = SDL_KSDATAFORMAT_SUBTYPE_PCM;
|
|
||||||
SDL_memcpy(&wfmt.SubFormat, &SDL_KSDATAFORMAT_SUBTYPE_PCM, sizeof(GUID));
|
SDL_memcpy(&wfmt.SubFormat, &SDL_KSDATAFORMAT_SUBTYPE_PCM, sizeof(GUID));
|
||||||
}
|
}
|
||||||
wfmt.Samples.wValidBitsPerSample = SDL_AUDIO_BITSIZE(this->spec.format);
|
wfmt.Samples.wValidBitsPerSample = SDL_AUDIO_BITSIZE(this->spec.format);
|
||||||
|
|
Loading…
Reference in a new issue