mirror of
https://github.com/game-stop/veejay.git
synced 2025-12-15 04:10:00 +01:00
use memset, indent
This commit is contained in:
@@ -228,8 +228,8 @@ void sample_init(int len, void *font, editlist *pedl)
|
|||||||
{
|
{
|
||||||
if (!initialized) {
|
if (!initialized) {
|
||||||
int i;
|
int i;
|
||||||
for (i = 0; i < SAMPLE_MAX_SAMPLES; i++)
|
veejay_memset(avail_num, 0, sizeof(avail_num));
|
||||||
avail_num[i] = 0;
|
|
||||||
this_sample_id = 1; /* do not start with zero */
|
this_sample_id = 1; /* do not start with zero */
|
||||||
if (!
|
if (!
|
||||||
(SampleHash =
|
(SampleHash =
|
||||||
@@ -1527,16 +1527,6 @@ int sample_start_playing(int s1, int no_cache)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sample_is_deleted(int s1)
|
|
||||||
{
|
|
||||||
int i;
|
|
||||||
for (i = 0; i < next_avail_num; i++) {
|
|
||||||
if (avail_num[i] == s1)
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
int sample_set_chain_source(int s1, int position, int input)
|
int sample_set_chain_source(int s1, int position, int input)
|
||||||
{
|
{
|
||||||
sample_info *sample;
|
sample_info *sample;
|
||||||
@@ -3605,9 +3595,9 @@ void CreateSample(xmlNodePtr node, sample_info * sample, void *font)
|
|||||||
|
|
||||||
if(sample->edit_list_file)
|
if(sample->edit_list_file)
|
||||||
{
|
{
|
||||||
sprintf(buffer, "%s", sample->edit_list_file);
|
sprintf(buffer, "%s", sample->edit_list_file);
|
||||||
xmlNewChild(node, NULL, (const xmlChar*) XMLTAG_EDIT_LIST_FILE,
|
xmlNewChild(node, NULL, (const xmlChar*) XMLTAG_EDIT_LIST_FILE,
|
||||||
(const xmlChar*) buffer );
|
(const xmlChar*) buffer );
|
||||||
}
|
}
|
||||||
|
|
||||||
sprintf(buffer, "%s", sample->descr);
|
sprintf(buffer, "%s", sample->descr);
|
||||||
|
|||||||
Reference in New Issue
Block a user