6500stom@hub.UUCP (01/03/90)
I have some sound code that play a 'snd ' resource async. It works perfectly on my Mac II with sys 6.0.4 but when I tried it on an SE with the same system software it crashes horribly right before it plays the sound. I thought I read somewhere that the Sound Mgr doesn't depend upon the platform as long as it is running in sys 6.0.2 or greater. The code looks like this: (gSndChannel starts out nil) if (SndNewChannel(&gSndChannel, 0, 0, ChanCallBack)) goto out; if (SndPlay(gSndChannel, sndHandle, true)) goto outa; aCommand.cmd = callBackCmd; aCommand.param1 = 0; (my completion routine doesn't need A5, trust me- this isn't the problem) if (SndDoCommand(gSndChannel, &aCommand, false)) goto outa; Does it matter that I'm playing the sound in a trap patch (the trap I'm patching moves memory so there shouldn't be a problem there)? I know you shouldn't patch traps but this is a hack and I don't expect it to work it things change. / Josh Pritikin T The C++ programming language \ | Internet: 6500stom@ucsbuxa.ucsb.edu | is at worst, the second best | | AppleLink: Josh.P | for a given application. | \ GEnie: J.Pritikin ! But usually, it is the best. /