#import "Transport.h"
#import <objc/objc.h>

/* just to test DACPlayer.m */

main(argc,argv)
int argc;
char *argv[];
{
	char *filename;
	id myTransport,mySound;
	int error;
	
	filename = argv[1];
	myTransport = [Transport new];
	mySound = [Sound new];
	error = [mySound readSoundfile:filename];
	if(error) die(error);
	[myTransport play:(id)mySound];
	[myTransport wait];
}
die(error)
{
	printf("%s\n",SNDSoundError(error));
	exit(-1);
}
