Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/new_class_id: SoundSource completely added as a Resource

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  //////////////////
23  /* SOUND-BUFFER */
24  //////////////////
25  SoundBuffer::SoundBuffer()
26      : data(new SoundBufferData)
27  {
28  }
29  /**
30   * @brief Creates a Soundbuffer out of an inputfile
31   * @param fileName The name of the File
32   */
33  SoundBuffer::SoundBuffer(const std::string& fileName)
34      : data(new SoundBufferData)
35  {
36    this->load(fileName);
37  }
38
39  SoundBuffer::SoundBuffer(const SoundBuffer& buffer)
40      : data(buffer.data)
41  {  }
42
43  SoundBuffer::SoundBuffer(const SoundBufferData::Pointer& dataPointer)
44      : data(dataPointer)
45  {  };
46}
Note: See TracBrowser for help on using the repository browser.