~ubuntu-branches/debian/sid/bristol/sid

« back to all changes in this revision

Viewing changes to bristol/envelope.c

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2010-06-18 09:39:39 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20100618093939-1iodlgzvn6g1lqok
Tags: 0.60.5-1
* Change my email address.
* Imported Upstream version 0.60.5
* Update debian/copyright.

Show diffs side-by-side

added added

removed removed

Lines of Context:
270
270
        if (voice->flags & BRISTOL_KEYON)
271
271
        {
272
272
                /* There is some issue here */
273
 
                if ((voice->baudio->voicecount > 1) || (param->param[6].float_val != 0))
 
273
                if ((voice->baudio->voicecount > 1) || (param->param[6].float_val != 0)
 
274
                        || (cgain == 0.0f))
274
275
                        cgain = 1.0;
 
276
 
275
277
                local->cstate = STATE_ATTACK;
276
278
                /*
277
279
                 * This is for Jack Sample Accurate support. It is a compromise as I am
473
475
                                break;
474
476
                }
475
477
        }
 
478
 
476
479
        local->cgain = cgain;
477
480
        local->egain = egain;
 
481
 
478
482
        return(0);
479
483
}
480
484