mirror of https://github.com/stella-emu/stella.git
Fix minor compile warning.
This commit is contained in:
parent
ba6b32aa21
commit
b1234dd086
|
@ -416,7 +416,7 @@ bool SoundSDL2::playWav(const char* fileName, uInt32 position, uInt32 length)
|
|||
|
||||
// Load WAV file
|
||||
SDL_AudioSpec* result = SDL_LoadWAV(fileName, &wavSpec, &myWavBuffer, &wavLength);
|
||||
if(result == NULL || position > wavLength)
|
||||
if(result == nullptr || position > wavLength)
|
||||
return false;
|
||||
|
||||
length = length
|
||||
|
@ -426,7 +426,7 @@ bool SoundSDL2::playWav(const char* fileName, uInt32 position, uInt32 length)
|
|||
// Open audio device
|
||||
const char* device = myDeviceId ? myDevices.at(myDeviceId).first.c_str() : nullptr;
|
||||
|
||||
myWavDevice = SDL_OpenAudioDevice(device, 0, &wavSpec, NULL, 0);
|
||||
myWavDevice = SDL_OpenAudioDevice(device, 0, &wavSpec, nullptr, 0);
|
||||
if(!myWavDevice)
|
||||
return false;
|
||||
|
||||
|
|
Loading…
Reference in New Issue