source:
orxonox.OLD/trunk/src/lib/sound/sound_buffer.cc
@
10727
Last change on this file since 10727 was 9869, checked in by bensch, 18 years ago | |
---|---|
File size: 1.3 KB |
Rev | Line | |
---|---|---|
[4744] | 1 | /* |
[1853] | 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. | |
[1855] | 10 | |
11 | ### File Specific: | |
[5386] | 12 | main-programmer: Benjamin Grauer |
[1855] | 13 | co-programmer: ... |
[1853] | 14 | */ |
15 | ||
[5386] | 16 | #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_SOUND |
[1853] | 17 | |
[5386] | 18 | #include "sound_buffer.h" |
[1853] | 19 | |
[5386] | 20 | |
[7460] | 21 | namespace OrxSound |
[3365] | 22 | { |
[9869] | 23 | ObjectListDefinition(SoundBuffer); |
[7460] | 24 | ////////////////// |
25 | /* SOUND-BUFFER */ | |
26 | ////////////////// | |
[9869] | 27 | SoundBuffer::SoundBuffer() |
28 | : data(new SoundBufferData) | |
29 | { | |
30 | this->registerObject(this, SoundBuffer::_objectList); | |
31 | } | |
[7460] | 32 | /** |
[9869] | 33 | * @brief Creates a Soundbuffer out of an inputfile |
[7460] | 34 | * @param fileName The name of the File |
35 | */ | |
36 | SoundBuffer::SoundBuffer(const std::string& fileName) | |
[9869] | 37 | : data(new SoundBufferData) |
[7460] | 38 | { |
[9869] | 39 | this->registerObject(this, SoundBuffer::_objectList); |
40 | this->load(fileName); | |
[7460] | 41 | } |
[5386] | 42 | |
[9869] | 43 | SoundBuffer::SoundBuffer(const SoundBuffer& buffer) |
44 | : data(buffer.data) | |
[7460] | 45 | { |
[9869] | 46 | this->registerObject(this, SoundBuffer::_objectList); |
[7460] | 47 | } |
[5386] | 48 | |
[9869] | 49 | SoundBuffer::SoundBuffer(const SoundBufferData::Pointer& dataPointer) |
50 | : data(dataPointer) | |
[7460] | 51 | { |
[9869] | 52 | this->registerObject(this, SoundBuffer::_objectList); |
53 | }; | |
[5386] | 54 | |
[9869] | 55 | SoundBuffer::~SoundBuffer() |
[8969] | 56 | { |
57 | } | |
58 | ||
[3543] | 59 | } |
Note: See TracBrowser
for help on using the repository browser.