Hummingbird Framework
 All Classes Functions Variables Modules Pages
SoundBuffer.h
1 #ifndef HB_SOUND_BUFFER_H
2 #define HB_SOUND_BUFFER_H
3 #include "../Core/Resource.h"
4 #include "../Core/Time.h"
5 #include "SoundManager.h"
6 
7 namespace hb
8 {
13  class SoundBuffer : public Resource<sf::SoundBuffer, std::string, SoundManager>
14  {
15  public:
16  SoundBuffer(const sf::SoundBuffer& buffer, const std::string& id);
17  SoundBuffer(const std::string& id);
18  SoundBuffer():SoundBuffer(sf::SoundBuffer(), ""){}
19  ~SoundBuffer();
20  static SoundBuffer loadFromFile(const std::string& path);
21  Time getDuration() const;
22  };
23 }
24 #endif
Class representing a loaded resource.
Definition: Resource.h:16
Definition: Box2DPlugin.h:6
Definition: SoundBuffer.h:13
Class for representing intervals of time.
Definition: Time.h:13