Fix minor compile warning.

This commit is contained in:
Stephen Anthony 2022-09-03 13:13:29 -02:30
parent ba6b32aa21
commit b1234dd086
1 changed files with 2 additions and 2 deletions

View File

@ -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;