blob: 181f45059f5994b636bb37bd46f5a82f92eabff2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
/* $Id$ */
/** @file allegro_s.h Base fo playing sound via Allegro. */
#ifndef SOUND_ALLEGRO_H
#define SOUND_ALLEGRO_H
#include "sound_driver.hpp"
class SoundDriver_Allegro: public SoundDriver {
public:
/* virtual */ const char *Start(const char * const *param);
/* virtual */ void Stop();
/* virtual */ void MainLoop();
};
class FSoundDriver_Allegro: public SoundDriverFactory<FSoundDriver_Allegro> {
public:
static const int priority = 5;
/* virtual */ const char *GetName() { return "allegro"; }
/* virtual */ const char *GetDescription() { return "Allegro Sound Driver"; }
/* virtual */ Driver *CreateInstance() { return new SoundDriver_Allegro(); }
};
#endif /* SOUND_ALLEGRO_H */
|