Files
wc3re/render/AlResource.cc

34 lines
653 B
C++

#include "AlResource.hh"
namespace render {
void ALCDeviceDeleter::operator() (ALCdevice *dev) const
{
alcCloseDevice(dev);
}
void ALCContextDeleter::operator() (ALCcontext *ctx) const
{
alcDestroyContext(ctx);
}
void ALSourceDeleter::operator() (ALuint src) const
{
alDeleteSources(1, &src);
}
void ALSourceDeleter::operator() (ALsizei count, ALuint src[]) const
{
alDeleteSources(count, src);
}
void ALBufferDeleter::operator() (ALuint buf) const
{
alDeleteBuffers(1, &buf);
}
void ALBufferDeleter::operator() (ALsizei count, ALuint buf[]) const
{
alDeleteBuffers(count, buf);
}
}