source: trunk/src/sample.h @ 251

Last change on this file since 251 was 251, checked in by sam, 10 years ago

Skeleton for sample entity and sampler manager classes.

  • Property svn:keywords set to Id
File size: 870 bytes
Line 
1//
2// Lol Engine
3//
4// Copyright: (c) 2010-2011 Sam Hocevar <sam@hocevar.net>
5//   This program is free software; you can redistribute it and/or
6//   modify it under the terms of the Do What The Fuck You Want To
7//   Public License, Version 2, as published by Sam Hocevar. See
8//   http://sam.zoy.org/projects/COPYING.WTFPL for more details.
9//
10
11//
12// The Sample class
13// ----------------
14// A Sample is a unique sound sample.
15//
16
17#if !defined __DH_SAMPLE_H__
18#define __DH_SAMPLE_H__
19
20#include <stdint.h>
21
22#include "entity.h"
23
24class SampleData;
25
26class Sample : public Entity
27{
28public:
29    Sample(char const *path);
30    virtual ~Sample();
31
32protected:
33    /* Inherited from Entity */
34    virtual char const *GetName();
35    virtual void TickGame(float deltams);
36
37public:
38    /* New methods */
39    void Play();
40
41private:
42    SampleData *data;
43};
44
45#endif // __DH_SAMPLE_H__
46
Note: See TracBrowser for help on using the repository browser.