mirror of https://github.com/PCSX2/pcsx2.git
spu2x-sdl: keep only C++11 code path
Linux supports C++11 completely.
This commit is contained in:
parent
8d22006165
commit
e8fdd99962
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue