mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 01:49:54 +00:00
31 lines
657 B
C++
31 lines
657 B
C++
#ifndef GAME_SOUND_SOUND_OUTPUT_H
|
|
#define GAME_SOUND_SOUND_OUTPUT_H
|
|
|
|
#include <string>
|
|
#include <memory>
|
|
|
|
namespace MWSound
|
|
{
|
|
class SoundManager;
|
|
class Sound_Decoder;
|
|
class Sound;
|
|
|
|
class Sound_Output
|
|
{
|
|
SoundManager &mgr;
|
|
|
|
virtual bool Initialize(const std::string &devname="") = 0;
|
|
virtual void Deinitialize() = 0;
|
|
|
|
virtual Sound *StreamSound(const std::string &fname, std::auto_ptr<Sound_Decoder> decoder) = 0;
|
|
|
|
Sound_Output(SoundManager &mgr) : mgr(mgr) { }
|
|
public:
|
|
virtual ~Sound_Output() { }
|
|
|
|
friend class OpenAL_Output;
|
|
friend class SoundManager;
|
|
};
|
|
}
|
|
|
|
#endif
|