
#include <stdlib.h>
#include <stdio.h>
#include <string.h>

#include <direct.h>
#include <io.h>

#include "_conio.h"
#include "datatypes.h"
#include "filestuff.h"

#include "wav_struct.h"

#define MAX_FILES 64

//----------------------------------------------------------------
int read_directory();
void sort_filelist();
void display_filelist();

extern s8 *sample_output_pointer;


typedef struct filelist_struct
{
	char fname[256];
	u32	 f0,f1;
	u32	 length;
}filelist_struct;

typedef struct WAV_struct
{
	char fname[256];
	char id[4];
	int  num_samples;
}WAV_struct;


extern filelist_struct filelist[MAX_FILES];
extern WAV_struct WAV_list[MAX_FILES];

extern int amount_linkfiles;