mirror of
https://github.com/game-stop/veejay.git
synced 2025-12-19 14:19:58 +01:00
added events: samplebank add, samplebank del, samplebank list, fx list, fx info, setup preview, get preview, fx details,fx chain, added sayVIMS utility, updated buildscripts
git-svn-id: svn://code.dyne.org/veejay/trunk@590 eb8d1916-c9e9-0310-b8de-cf0c9472ead5
This commit is contained in:
@@ -1122,6 +1122,37 @@ void samplebank_init()
|
||||
#endif
|
||||
}
|
||||
|
||||
char *samplebank_sprint_list()
|
||||
{
|
||||
char *res = NULL;
|
||||
int len = 0;
|
||||
char **props = (char**) vevo_list_properties( sample_bank_ );
|
||||
if(!props)
|
||||
return NULL;
|
||||
|
||||
int i = 0;
|
||||
for( i = 0; props[i] != NULL ; i ++ )
|
||||
{
|
||||
if(props[i][0] == 's')
|
||||
len += strlen( props[i] ) + 1;
|
||||
}
|
||||
|
||||
res = (char*) malloc(sizeof(char) * len );
|
||||
memset(res,0,len);
|
||||
|
||||
char *p = res;
|
||||
for( i = 0; props[i] != NULL ; i ++ )
|
||||
{
|
||||
if(props[i][0] == 's' )
|
||||
{
|
||||
sprintf(p, "%s:", props[i]);
|
||||
p += strlen( props[i] ) + 1;
|
||||
}
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
void samplebank_free()
|
||||
{
|
||||
int i = 0;
|
||||
|
||||
Reference in New Issue
Block a user