~ubuntu-branches/ubuntu/maverick/vice/maverick

« back to all changes in this revision

Viewing changes to src/resid/envelope.h

  • Committer: Bazaar Package Importer
  • Author(s): Zed Pobre
  • Date: 2005-02-01 11:30:26 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20050201113026-3eyakzsmmheclvjg
Tags: 1.16-1
* New upstream version
* Fixes crash on 64-bit architectures (closes: #287640)
* x128 working again (closes: #286767)
* Works fine with /dev/dsp in use (not in the main changelog, but tested
  on my local machine as working).  Presumably, this also takes care of
  the issue with dsp being held.  I'm not sure if this is because I'm
  testing it on a 2.6 kernel now -- if you are still having problems
  with /dev/dsp, please reopen the bugs. (closes: #152952, #207942)
* Don't kill Makefile.in on clean

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
//  ---------------------------------------------------------------------------
2
2
//  This file is part of reSID, a MOS6581 SID emulator engine.
3
 
//  Copyright (C) 2003  Dag Lem <resid@nimrod.no>
 
3
//  Copyright (C) 2004  Dag Lem <resid@nimrod.no>
4
4
//
5
5
//  This program is free software; you can redistribute it and/or modify
6
6
//  it under the terms of the GNU General Public License as published by
198
198
 
199
199
  // NB! This requires two's complement integer.
200
200
  int rate_step = rate_period - rate_counter;
201
 
  if (rate_step < 0) {
 
201
  if (rate_step <= 0) {
202
202
    rate_step += 0x7fff;
203
203
  }
204
204