Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/new_class_id/src/lib/sound/resource_sound_buffer.h @ 9811

Last change on this file since 9811 was 9811, checked in by bensch, 18 years ago

added missing files

File size: 979 bytes
Line 
1/*!
2 * @file resource_sound_buffer.h
3 * @brief Contains the ResourceSoundBuffer class, that handles the Resource-specific loading part of the SoundBuffer.
4 *
5 */
6
7#ifndef _RESOURCE_SOUND_BUFFER_H
8#define _RESOURCE_SOUND_BUFFER_H
9
10#include "util/loading/resource.h"
11#include "sound_buffer.h"
12
13namespace OrxSound
14{
15  class ResourceSoundBuffer : public SoundBuffer, public Resources::NewResource
16  {
17    ObjectListDeclaration(ResourceSoundBuffer);
18  public:
19    ResourceSoundBuffer(const std::string& soundName);
20
21  private:
22  class SoundBufferResourcePointer : public Resources::StorePointer
23    {
24    public:
25      SoundBufferResourcePointer(const std::string& loadString, const Resources::KeepLevel& keepLevel, const SoundBufferData::Pointer& data);
26      inline const SoundBufferData::Pointer& ptr() const { return pointer; }
27    private:
28      SoundBufferData::Pointer pointer;
29    };
30
31  private:
32    static Resources::Type type;
33  };
34}
35
36
37#endif /* _RESOURCE_SOUND_BUFFER_H */
Note: See TracBrowser for help on using the repository browser.