faster veejay

git-svn-id: svn://code.dyne.org/veejay/trunk@697 eb8d1916-c9e9-0310-b8de-cf0c9472ead5
This commit is contained in:
Niels Elburg
2006-12-06 19:06:10 +00:00
parent ddbeec4f1e
commit a3081b2a96
12 changed files with 474 additions and 608 deletions

View File

@@ -901,7 +901,10 @@ int sample_get_effect(int s1, int position)
int sample_get_effect_any(int s1, int position) {
sample_info *sample = sample_get(s1);
if(position >= SAMPLE_MAX_EFFECTS || position < 0 ) return -1;
#ifdef STRICT_CHECKING
assert( position >= 0 && position < SAMPLE_MAX_EFFECTS );
#endif
// if(position >= SAMPLE_MAX_EFFECTS || position < 0 ) return -1;
if(sample) {
return sample->effect_chain[position]->effect_id;
}
@@ -1064,6 +1067,18 @@ int sample_get_effect_status(int s1)
return 0;
}
int sample_var( int s1, int *type, int *fader, int *fx, int *rec, int *active )
{
sample_info *si = sample_get(s1);
if(!si) return 0;
*type = 0;
*fader = si->fader_active;
*fx = si->effect_toggle;
*rec = si->encoder_active;
*active= 1;
return 1;
}
/****************************************************************************************************
*
* sample_get_effect_arg( sample_nr, position, argnr )