use only one set of logging macros instead of two and don't use free() as a function name
This commit is contained in:
@@ -18,7 +18,7 @@ void printAlError(ALenum err, const char* situation)
|
||||
{
|
||||
if(err != AL_NO_ERROR)
|
||||
{
|
||||
LOGF_ERROR(HLE, "%s: OpenAL error 0x%04x", situation, err);
|
||||
LOG_ERROR(HLE, "%s: OpenAL error 0x%04x", situation, err);
|
||||
Emu.Pause();
|
||||
}
|
||||
}
|
||||
@@ -27,7 +27,7 @@ void printAlcError(ALCenum err, const char* situation)
|
||||
{
|
||||
if(err != ALC_NO_ERROR)
|
||||
{
|
||||
LOGF_ERROR(HLE, "%s: OpenALC error 0x%04x", situation, err);
|
||||
LOG_ERROR(HLE, "%s: OpenALC error 0x%04x", situation, err);
|
||||
Emu.Pause();
|
||||
}
|
||||
}
|
||||
@@ -137,7 +137,7 @@ void OpenALThread::AddData(const void* src, ALsizei size)
|
||||
|
||||
int bsize = size < m_buffer_size ? size : m_buffer_size;
|
||||
if (!AddBlock(buffer, bsize, bsrc))
|
||||
LOGF_ERROR(HLE, "OpenALThread::AddBlock: invalid block size: %d", bsize);
|
||||
LOG_ERROR(HLE, "OpenALThread::AddBlock: invalid block size: %d", bsize);
|
||||
|
||||
alSourceQueueBuffers(m_source, 1, &buffer);
|
||||
checkForAlError("alSourceQueueBuffers");
|
||||
|
||||
Reference in New Issue
Block a user