Audio/OpenALDevice: Fix previous commit

This commit is contained in:
SirLynix 2023-12-04 17:37:40 +01:00
parent b5576ccb9f
commit 3e1b61070c
1 changed files with 3 additions and 3 deletions

View File

@ -192,7 +192,7 @@ namespace Nz
ALuint bufferId = 0; ALuint bufferId = 0;
alGenBuffers(1, &bufferId); alGenBuffers(1, &bufferId);
if (!ProcessErrorFlag()) if (ProcessErrorFlag())
{ {
NazaraError("failed to create OpenAL buffer"); NazaraError("failed to create OpenAL buffer");
return {}; return {};
@ -210,9 +210,9 @@ namespace Nz
ALuint sourceId = 0; ALuint sourceId = 0;
alGenSources(1, &sourceId); alGenSources(1, &sourceId);
if (!ProcessErrorFlag()) if (ProcessErrorFlag())
{ {
NazaraError("failed to create OpenAL buffer"); NazaraError("failed to create OpenAL source");
return {}; return {};
} }