mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-22 20:51:31 +00:00
- Copyright und Lizenz eingefügt
- Einige Kommentare
This commit is contained in:
parent
7ebccb34d4
commit
deecd6543c
1 changed files with 36 additions and 5 deletions
|
@ -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 <SDL.h>
|
||||
#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)
|
||||
|
|
Loading…
Reference in a new issue