spu2x-sdl: keep only C++11 code path

Linux supports C++11 completely.
This commit is contained in:
Gregory Hainaut 2015-10-23 23:45:50 +02:00
parent 8d22006165
commit e8fdd99962
1 changed files with 0 additions and 11 deletions

View File

@ -108,21 +108,10 @@ struct SDLAudioMod : public SndOutModule {
private:
SDL_AudioSpec spec;
/* Only C++11 supports the aggregate initializer list syntax used here. */
SDLAudioMod()
#if __cplusplus >= 201103L
: spec({SampleRate, format, channels, 0,
desiredSamples, 0, 0, &callback_fillBuffer, nullptr})
#endif
{
#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);
}