From deecd6543c290fb2e2a777cb6a5b38d093f9bf2c Mon Sep 17 00:00:00 2001 From: Yamagi Burmeister Date: Thu, 14 Oct 2010 07:26:09 +0000 Subject: [PATCH] =?UTF-8?q?-=20Copyright=20und=20Lizenz=20eingef=C3=BCgt?= =?UTF-8?q?=20-=20Einige=20Kommentare?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/sdl/sound.c | 41 ++++++++++++++++++++++++++++++++++++----- 1 file changed, 36 insertions(+), 5 deletions(-) diff --git a/src/sdl/sound.c b/src/sdl/sound.c index 62dc926e..ecd7b313 100644 --- a/src/sdl/sound.c +++ b/src/sdl/sound.c @@ -1,3 +1,35 @@ +/* + * Copyright (C) 1997-2001 Id Software, Inc. + * Copyright (C) 2010 Yamagi Burmeister + * Copyright (C) 2005 Ryan C. Gordon + * + * 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 distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * See the 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. + * + * ======================================================================= + * + * The lower layer of the sound system. It utilizes SDL for writing the + * sound data to the device. This file was rewritten by Yamagi to solve + * a lot problems arrising from the old Icculus Quake 2 SDL backend like + * stuttering and cracking. This implementation is based on ioQuake3s + * snd_sdl.c. + * + * ======================================================================= + */ + #include #include "../client/header/client.h" #include "../client/sound/header/local.h" @@ -138,7 +170,7 @@ SNDDMA_Init(void) return 0; } - /* Don't pollute the frontend dma_t */ + /* This points to the frontend */ dmabackend = &dma; dmapos = 0; @@ -179,10 +211,9 @@ SNDDMA_Shutdown(void) } /* - * This sends the sound to the device, - * if the DMA isn't the device itself. - * This shouldn't be the case on all PCI - * and PCIe soundcards + * This sends the sound to the device. + * In the SDL backend it's useless and + * only implemented for compatiblity. */ void SNDDMA_Submit(void)