Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83 (MC840302); site ttds.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!mcvax!enea!ttds!roland From: roland@ttds.UUCP (Roland Karlsson) Newsgroups: net.micro.mac Subject: sound in sumacc Message-ID: <1038@ttds.UUCP> Date: Tue, 22-Oct-85 15:39:47 EDT Article-I.D.: ttds.1038 Posted: Tue Oct 22 15:39:47 1985 Date-Received: Fri, 25-Oct-85 07:34:20 EDT Reply-To: roland@ttds.UUCP (Roland Karlsson) Organization: The Royal Inst. of Techn., Stockholm Lines: 37 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 ==============================================================================