This is main.m in view mode; [Download] [Up]
#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);
}
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.