bgm*: updated copyright years.

bgmnull.c: removed unused file.


git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@387 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
Ozkan Sezer 2011-01-10 20:17:15 +00:00
parent 945262b863
commit 00545bbbed
3 changed files with 2 additions and 75 deletions

View file

@ -1,73 +0,0 @@
/*
* Background music handling for Quakespasm
* Handle cases when we are configured for no sound and no midi driver,
* nada...
*
* Copyright (C) 1999-2005 Id Software, Inc.
* Copyright (C) 2010 O.Sezer <sezero@users.sourceforge.net>
*
* 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.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
#include "quakedef.h"
#include "bgmusic.h"
qboolean bgmloop = true;
cvar_t bgm_extmusic = {"bgm_extmusic", "1", true};
static float old_volume = -1.0f;
qboolean BGM_Init (void)
{
Cvar_RegisterVariable(&bgm_extmusic, NULL);
return false;
}
void BGM_Play (const char *filename)
{
}
void BGM_PlayCDtrack (byte track, qboolean looping)
{
bgmloop = looping;
CDAudio_Play(track, looping);
}
void BGM_Stop (void)
{
}
void BGM_Pause (void)
{
}
void BGM_Resume (void)
{
}
void BGM_Update (void)
{
if (old_volume != bgmvolume.value)
{
if (bgmvolume.value < 0)
Cvar_Set ("bgmvolume", "0");
else if (bgmvolume.value > 1)
Cvar_Set ("bgmvolume", "1");
old_volume = bgmvolume.value;
}
}

View file

@ -3,7 +3,7 @@
* Handles streaming music as raw sound samples and runs the midi driver
*
* Copyright (C) 1999-2005 Id Software, Inc.
* Copyright (C) 2011 O.Sezer <sezero@users.sourceforge.net>
* Copyright (C) 2010-2011 O.Sezer <sezero@users.sourceforge.net>
*
* 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

View file

@ -3,7 +3,7 @@
* Handles streaming music as raw sound samples and runs the midi driver
*
* Copyright (C) 1999-2005 Id Software, Inc.
* Copyright (C) 2011 O.Sezer <sezero@users.sourceforge.net>
* Copyright (C) 2010-2011 O.Sezer <sezero@users.sourceforge.net>
*
* $Id: bgmusic.h 3818 2010-12-19 09:04:17Z sezero $
*