spu2-sdl: move the ifdef to support automatic indentation

This commit is contained in:
Gregory Hainaut 2015-10-21 20:54:09 +02:00
parent 281c5e4c66
commit 53c38ef2cc
1 changed files with 16 additions and 15 deletions

View File

@ -109,21 +109,22 @@ struct SDLAudioMod : public SndOutModule {
SDLAudioMod()
#if __cplusplus >= 201103L
: spec({SampleRate, format, channels, 0,
desiredSamples, 0, 0, &callback_fillBuffer, nullptr}) {
#else
{
spec.freq = SampleRate;
spec.format = format;
spec.channels = channels;
spec.samples = desiredSamples;
spec.callback = callback_fillBuffer;
spec.userdata = NULL;
desiredSamples, 0, 0, &callback_fillBuffer, nullptr})
#endif
// Number of samples must be a multiple of packet size.
assert(samples % SndOutPacketSize == 0);
}
};
{
#if __cplusplus >= 201103L
spec.freq = SampleRate;
spec.format = format;
spec.channels = channels;
spec.samples = desiredSamples;
spec.callback = callback_fillBuffer;
spec.userdata = NULL;
#endif
// Number of samples must be a multiple of packet size.
assert(samples % SndOutPacketSize == 0);
}
};
SDLAudioMod SDLAudioMod::mod;
SDLAudioMod SDLAudioMod::mod;
SndOutModule * const SDLOut = &SDLAudioMod::mod;
SndOutModule * const SDLOut = &SDLAudioMod::mod;