roland@ttds.UUCP (Roland Karlsson) (10/22/85)
I have a question concernig the sound generator in sumacc. I have sucessfully started the Free Form sound generator whith FSWrite( -4... but i can't get it to work with StartSound. I have tried both synchronous and async mode. This is selected parts of the code. # define FFMODE 0 typedef FFSynthRec * FFSynthPtr; unsigned char *waves; FFSynthPtr wave_ptr; int the_time; ... wave_ptr = (FFSynthPtr) NewPtr(100000); wave_ptr->mode = FFMODE; waves = wave_ptr->waveBytes; ... wave_ptr->count = FixRatio(the_item+1-SOUND90, 1); wave_ptr->waveBytes[0] = 0; wave_ptr->waveBytes[1] = ... /* This works fine */ FSWrite( -4, &the_time, wave_ptr); /* Those two do not */ StartSound(wave_ptr, the_time, (ProcPtr) -1); StartSound(wave_ptr, the_time, (ProcPtr) 0); What am i doing wrong ? ============================================================================== Have a nice day wishes: Roland Karlsson (roland@ttds) Dpt. of Telecomm. & Computer Systems Royal Institute of Technology S-100 44 Stockholm SWEDEN ==============================================================================