Fix build for MSVC.
This commit is contained in:
parent
c02c448f47
commit
fee89f1967
|
@ -192,7 +192,8 @@ bool DirectSound::init(long sampleRate)
|
||||||
|
|
||||||
void DirectSound::pause()
|
void DirectSound::pause()
|
||||||
{
|
{
|
||||||
for (auto buf : {dsbPrimary, dsbSecondary}) {
|
LPDIRECTSOUNDBUFFER bufs[] = {dsbPrimary, dsbSecondary};
|
||||||
|
for (auto buf : bufs) {
|
||||||
if (buf == NULL)
|
if (buf == NULL)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
@ -216,7 +217,8 @@ void DirectSound::reset()
|
||||||
|
|
||||||
void DirectSound::resume()
|
void DirectSound::resume()
|
||||||
{
|
{
|
||||||
for (auto buf : {dsbPrimary, dsbSecondary}) {
|
LPDIRECTSOUNDBUFFER bufs[] = {dsbPrimary, dsbSecondary};
|
||||||
|
for (auto buf : bufs) {
|
||||||
if (buf == NULL)
|
if (buf == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue