Csound Csound-dev Csound-tekno Search About

[Cs-dev] GEN01 and reading all channels

Date2010-08-25 16:12
FromJohn ff
Subject[Cs-dev] GEN01 and reading all channels
As I read the code asking for all channels does not look at the file,
but uses nchnls or 1 which seems odd.  Victor checked in a fix to line
2480 that seems relevant

      if(!p->channel) ftp->nchanls  = p->nchanls;
      else ftp->nchanls  = 1;

At this point p->channel cannot be 0 as previously
    if (p->channel == 0)                      /* snd is chan 1,2,..8 or all */
      p->channel = ALLCHNLS;

Enlightenment please
==John ffitch

------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-08-25 17:31
FromVictor Lazzarini
SubjectRe: [Cs-dev] GEN01 and reading all channels
My fix was probably incomplete.

Victor
On 25 Aug 2010, at 16:12, John ff wrote:

> As I read the code asking for all channels does not look at the file,
> but uses nchnls or 1 which seems odd.  Victor checked in a fix to line
> 2480 that seems relevant
>
>      if(!p->channel) ftp->nchanls  = p->nchanls;
>      else ftp->nchanls  = 1;
>
> At this point p->channel cannot be 0 as previously
>    if (p->channel == 0)                      /* snd is chan 1,2,..8  
> or all */
>      p->channel = ALLCHNLS;
>
> Enlightenment please
> ==John ffitch
>
> ------------------------------------------------------------------------------
> Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
> Be part of this innovative community and reach millions of netbook  
> users
> worldwide. Take advantage of special opportunities to increase  
> revenue and
> speed time-to-market. Join now, and jumpstart your future.
> http://p.sf.net/sfu/intel-atom-d2d
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net