dsrc isn't necessary for this repo
[client-tools.git] / src / external / 3rd / application / UiBuilder / UIDirectSoundSoundCanvas.h
blobfcd7b0069c800ec57e9acfc6082c415497bde586
1 #ifndef __UIDIRECTSOUNDSOUNDCANVAS_H__
2 #define __UIDIRECTSOUNDSOUNDCANVAS_H__
4 #include "UITypes.h"
5 #include "UISoundCanvas.h"
7 #define DIRECTSOUND_VERSION 0x800
9 #include <dsound.h>
11 #include <map>
13 typedef std::map<const char *, LPDIRECTSOUNDBUFFER> UINamedSoundMap;
15 class UIDirectSoundSoundCanvas : public UISoundCanvas
17 public:
19 UIDirectSoundSoundCanvas( void );
20 virtual ~UIDirectSoundSoundCanvas( void );
22 virtual void Play( const char * );
24 private:
26 LPDIRECTSOUND mPlaybackDevice;
27 UINamedSoundMap mSoundMap;
30 #endif // __UIDIRECTSOUNDSOUNDCANVAS_H__