android/ringlibsdl/project/jni/libmodplug-0.8.8.4/src/load_mid.cpp
static int mid_ordchan(MIDHANDLE *h, int mch)
{
	int i,c,n;
	MIDTRACK *t;
	c = 0;
	for( t = h->track; t; t=t->next )
		c |= (1<<t->chan);
	n = 0;
	for( i=0; i<mch; i++ )
		if( c & (1<<i) ) n++;
	return n;
}
// find out which ordinal a midichannel has
find out which ordinal a midichannel has
find out which ordinal a midichannel has
static int mid_ordchan(MIDHANDLE *h, int mch)
{
	int i,c,n;
	MIDTRACK *t;
	c = 0;
	for( t = h->track; t; t=t->next )
		c |= (1<<t->chan);
	n = 0;
	for( i=0; i<mch; i++ )
		if( c & (1<<i) ) n++;
	return n;
}
static int mid_ordchan ( MIDHANDLE * h , int mch ) { int i , c , n ; MIDTRACK * t ; c = 0 ; for ( t = h -> track ; t ; t = t -> next ) c |= ( 1 << t -> chan ) ; n = 0 ; for ( i = 0 ; i < mch ; i ++ ) if ( c & ( 1 << i ) ) n ++ ; return n ; }
find out which ordinal a midichannel has
find out which ordinal a midichannel has