예제 #1
0
void PlayFile_proc(STRPTR args, int32 length, APTR execbase)
{
	if (__tmp_file_name)
	{
		seek_start();
		Delay(8);

		add_file_to_que( __tmp_file_name );
		Delay(8);

		nextfilm();

		free(__tmp_file_name);
		__tmp_file_name = NULL;
	}

	return RETURN_OK;
}
예제 #2
0
static size_t read_labels(void)
{
   char *line;
   
   assert(g_line_no == 1);
   while ((line = get_line())) {
      const char *label = strtok(line, "\t");
      if (!label)
         die_loc("no label provided");
      intern_label(label);
   }

   size_t num_samples = g_line_no - 1;
   if (!num_samples)
      die_loc("at least one sample is required");
   
   seek_start();   
   return num_samples;
}