levin@bbn.com (Joel B Levin) (12/22/88)
I'm trying to hack with the new Sound Manager instead of the old one, and something is not working -- I don't know what. I am trying this on my SE with version 6.0.2 system software, which is supposed to have a version of the Sound Manager documented in IM-V useable in Macs < II. Technical info: I am attempting to use the waveTableSynth (I don't know beans about writing 'snth' resources). I am trying to open 4 channels; the Init parameter is from 4 to 7 to indicate the channel number. I ask for synthsizer waveTableSynth (==3). Two things happen. Resource 'snth' 4099 (==0x1003) gets loaded and a lot of bytes past the end of the resource get overwritten (8 bytes of 0x80 followed by 8 bytes untouched, repeated maybe 128 times) corrupting the heap. I have done some single stepping, and this occurs when I issue the first SndNewChannel with synth==3, or if I call SndNewChannel with synth==0 it happens when I call SndAddModifier with id==3. (I also tried forcing it to use resource 'snth' 3 by doing GetResource of that, locking it down, and handing the dereferenced pointer to SndAddModifier. That caused a spectacular, and noisy, crash -- but at least I got SOUND out of it.) I'm pretty ignorant when it comes to computer sound, but if anything obvious comes to mind from the above mishmosh, I'd appreciate a pointer. thanks / JBL UUCP: {backbone}!bbn!levin POTS: (617) 873-3463 INTERNET: levin@bbn.com