Macintosh port update
Several long-awaited updates for the Macintosh port, by Dean Luick and myself. This set affects Mac-only files. * Update the support for MPW compilers. * Use new system call names provided for in the latest Apple Universal Headers. * Tune up some of the includes for CodeWarrior. * Define YY_NEVER_INTERACTIVE for the dungeon and level compilers. * Remove pointless debugging code. * Clean up some unterminated comments.
This commit is contained in:
+2
-5
@@ -55,9 +55,8 @@ mac_speaker (struct obj *instr, char *melody) {
|
||||
/*
|
||||
* Set up the synth
|
||||
*/
|
||||
if (itworked (SndNewChannel (&theChannel, sampledSynth, initMono +
|
||||
initNoInterp, (void *) 0))) {
|
||||
|
||||
if (SndNewChannel(&theChannel, sampledSynth, initMono +
|
||||
initNoInterp, (void *) 0) == noErr) {
|
||||
char midi_note [] = {57, 59, 60, 62, 64, 65, 67};
|
||||
|
||||
short err;
|
||||
@@ -89,8 +88,6 @@ mac_speaker (struct obj *instr, char *melody) {
|
||||
}
|
||||
SndDisposeChannel (theChannel, false); /* Sync wait for completion */
|
||||
ReleaseResource (theSound);
|
||||
|
||||
mustwork (err);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user