1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-10 06:39:49 +00:00
OpenMW/apps/openmw/mwsound/openal_output.hpp

34 lines
606 B
C++
Raw Normal View History

#ifndef GAME_SOUND_OPENAL_OUTPUT_H
#define GAME_SOUND_OPENAL_OUTPUT_H
#include <string>
#include "alc.h"
#include "al.h"
#include "sound_output.hpp"
namespace MWSound
{
class SoundManager;
class OpenAL_Output : public Sound_Output
{
ALCdevice *Device;
ALCcontext *Context;
virtual bool Initialize(const std::string &devname="");
virtual void Deinitialize();
OpenAL_Output(SoundManager &mgr);
virtual ~OpenAL_Output();
friend class SoundManager;
};
#ifndef DEFAULT_OUTPUT
#define DEFAULT_OUTPUT OpenAL_Output
#endif
};
#endif