X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Faudio%2Fopenal_sound_source.cpp;h=530f905fbe24303b5094529eff6509285394787b;hb=2385af9640c78d45fc28123364c4f46810edbef5;hp=252cc6ee5ff79f9930eec31bc0c30341e49e1d88;hpb=fea3446f05e1e7673607b835c269d3e8d1929ab3;p=supertux.git diff --git a/src/audio/openal_sound_source.cpp b/src/audio/openal_sound_source.cpp index 252cc6ee5..530f905fb 100644 --- a/src/audio/openal_sound_source.cpp +++ b/src/audio/openal_sound_source.cpp @@ -1,12 +1,10 @@ -// $Id$ -// // SuperTux // Copyright (C) 2006 Matthias Braun // -// This program is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License -// as published by the Free Software Foundation; either version 2 -// of the License, or (at your option) any later version. +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -14,14 +12,13 @@ // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License -// along with this program; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -#include +// along with this program. If not, see . -#include "openal_sound_source.hpp" -#include "sound_manager.hpp" +#include "audio/openal_sound_source.hpp" +#include "audio/sound_manager.hpp" -OpenALSoundSource::OpenALSoundSource() +OpenALSoundSource::OpenALSoundSource() : + source() { alGenSources(1, &source); SoundManager::check_al_error("Couldn't create audio source: "); @@ -103,3 +100,5 @@ OpenALSoundSource::set_rollof_factor(float factor) { alSourcef(source, AL_ROLLOFF_FACTOR, factor); } + +/* EOF */