Go to the documentation of this file.00001 #pragma once
00002 #define NOMINMAX
00003 #include <windows.h>
00004 #include <vector>
00005 #include "gsingletonmanager.h"
00006
00007 using namespace std;
00008
00009 struct AudioMapping
00010 {
00011 int SourceIdx;
00012 char SoundName[50];
00013 bool loop;
00014 };
00015
00016 class GSoundManager : public GSingletonManager<GSoundManager>
00017 {
00018 vector<AudioMapping> mMapping;
00019 unsigned int *sources;
00020 unsigned int *buffers;
00021 public:
00022 GSoundManager(void);
00023 ~GSoundManager(void);
00024 void StartUp(char *IniFile);
00025 void Play(char *SoundName, bool loop = false);
00026 void Stop(char *SoundName);
00027 };