2012-03-17 05:12:17 +00:00
|
|
|
#ifndef GAME_SOUND_OPENAL_OUTPUT_H
|
|
|
|
#define GAME_SOUND_OPENAL_OUTPUT_H
|
|
|
|
|
2012-03-17 06:40:07 +00:00
|
|
|
#include <string>
|
2012-03-17 05:12:17 +00:00
|
|
|
|
|
|
|
#include "alc.h"
|
|
|
|
#include "al.h"
|
|
|
|
|
2012-03-17 06:40:07 +00:00
|
|
|
#include "sound_output.hpp"
|
|
|
|
|
2012-03-17 05:12:17 +00:00
|
|
|
namespace MWSound
|
|
|
|
{
|
2012-03-17 06:40:07 +00:00
|
|
|
class SoundManager;
|
|
|
|
|
2012-03-17 05:12:17 +00:00
|
|
|
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
|