#include <fishtalk_phon.h>

#define FT_IS_SKIPPABLE(x) ((x) == ' ' || (x) == '\t')

struct ft_handle {
	FT_SAMPLE_PROC sample;
	int	       rate;

	int in_cmd;

	char buffer[512 * 1024];
	long buffer_size;

	char cmd_buffer[16 * 1024];
	long cmd_buffer_size;
};

/* cmd.c */
void ft_cmd_queue(FT_HANDLE handle, const char* buffer);
void ft_cmd_main(FT_HANDLE handle, const char* buffer, long length);

/* phon.c */
void ft_phon_main(FT_HANDLE handle, const char* buffer, long length);
