~ubuntu-branches/ubuntu/precise/vice/precise

« back to all changes in this revision

Viewing changes to src/resid-dtv/filter.cc

  • Committer: Bazaar Package Importer
  • Author(s): Laszlo Boszormenyi (GCS)
  • Date: 2010-02-11 18:30:16 UTC
  • mfrom: (1.1.8 upstream) (9.2.2 sid)
  • Revision ID: james.westby@ubuntu.com-20100211183016-f6n8usn3tzp0u6dp
Tags: 2.2.dfsg-1
* New upstream release, C64 DTV is included so update package description
  and add it to the menu.
* Drop patch fixing build failure with gcc-4.4 , applied upstream.
* Fix some lintian problems and clean up debian/rules .

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//  ---------------------------------------------------------------------------
 
2
//  This file is part of reSID, a MOS6581 SID emulator engine.
 
3
//  Copyright (C) 2004  Dag Lem <resid@nimrod.no>
 
4
//
 
5
//  This program is free software; you can redistribute it and/or modify
 
6
//  it under the terms of the GNU General Public License as published by
 
7
//  the Free Software Foundation; either version 2 of the License, or
 
8
//  (at your option) any later version.
 
9
//
 
10
//  This program is distributed in the hope that it will be useful,
 
11
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
//  GNU General Public License for more details.
 
14
//
 
15
//  You should have received a copy of the GNU General Public License
 
16
//  along with this program; if not, write to the Free Software
 
17
//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
18
//  ---------------------------------------------------------------------------
 
19
 
 
20
#define __FILTER_CC__
 
21
#include "filter.h"
 
22
 
 
23
// ----------------------------------------------------------------------------
 
24
// Constructor.
 
25
// ----------------------------------------------------------------------------
 
26
Filter::Filter()
 
27
{
 
28
  reset();
 
29
}
 
30
 
 
31
// ----------------------------------------------------------------------------
 
32
// SID reset.
 
33
// ----------------------------------------------------------------------------
 
34
void Filter::reset()
 
35
{
 
36
  voice3off = 0;
 
37
  vol = 0;
 
38
  Vnf = 0;
 
39
}
 
40
 
 
41
void Filter::writeMODE_VOL(reg8 mode_vol)
 
42
{
 
43
  voice3off = mode_vol & 0x80;
 
44
  vol = mode_vol & 0x0f;
 
45
}