mirror of
https://github.com/game-stop/veejay.git
synced 2025-12-23 00:00:02 +01:00
faster veejay
git-svn-id: svn://code.dyne.org/veejay/trunk@697 eb8d1916-c9e9-0310-b8de-cf0c9472ead5
This commit is contained in:
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user