Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/new_class_id/src/lib/sound/sound_buffer.cc @ 9804

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

LoadResource should work… testing soon

File size: 1.0 KB
Line 
1/*
2   orxonox - the future of 3D-vertical-scrollers
3
4   Copyright (C) 2004 orx
5
6   This program is free software; you can redistribute it and/or modify
7   it under the terms of the GNU General Public License as published by
8   the Free Software Foundation; either version 2, or (at your option)
9   any later version.
10
11   ### File Specific:
12   main-programmer: Benjamin Grauer
13   co-programmer: ...
14*/
15
16#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_SOUND
17
18#include "sound_buffer.h"
19
20namespace OrxSound
21{
22  ObjectListDefinition(SoundBuffer);
23  //////////////////
24  /* SOUND-BUFFER */
25  //////////////////
26  SoundBuffer::SoundBuffer()
27  : data(new SoundBufferData)
28  {
29    this->registerObject(this, SoundBuffer::_objectList);
30  }
31  /**
32   * @brief Creates a Soundbuffer out of an inputfile
33   * @param fileName The name of the File
34   */
35  SoundBuffer::SoundBuffer(const std::string& fileName)
36  : data(new SoundBufferData)
37  {
38    this->registerObject(this, SoundBuffer::_objectList);
39    this->setName(fileName);
40
41    this->load(fileName);
42  }
43}
Note: See TracBrowser for help on using the repository browser.