This is playsound.c in view mode; [Download] [Up]
/* $Id: playsound.c,v 1.0 92/07/31 17:39:48 cap Exp $ * My routine to play a sound. The value of sound_file is set from the * defaults in my_main. * * The data for this module doesn't go into a zero-filled segment, * so you need to initialize everything. */ const char *sound_file = 0; /* name of sound file to play */ playsound() { if (sound_file) PSplaysound(sound_file, 1); /* restore frame pointer from entry to this routine */ asm("unlk a6"); /* now we do the first two instructions of emptyTrash, because the jump here clobbered them */ asm("link a6,#0"); asm("moveml #8240,sp@-"); /* now jump to the third instruction of emptyTrash */ asm(RETURN); }
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.