#include <fishtalk.h>

static void sample(FT_HANDLE handle, short* wave, long length){
	fwrite(wave, length, 1, stdout);
}

int main(int argc, char** argv){
	FT_HANDLE handle = FishTalkInit(sample, 11025);

	FishTalkBuffer(handle, argv[1]);
	FishTalkSync(handle);

	FishTalkFree(handle);

	return 0;
}
