Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site sask.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!ihnp4!alberta!sask!custead From: custead@sask.UUCP (Der cuss) Newsgroups: net.micro.mac Subject: SUMacC bug, and a question about phase Message-ID: <169@sask.UUCP> Date: Sat, 9-Feb-85 21:39:53 EST Article-I.D.: sask.169 Posted: Sat Feb 9 21:39:53 1985 Date-Received: Mon, 11-Feb-85 07:13:53 EST Organization: U of Saskatchewan, Canada Lines: 32 The definition of the Wave structure in osintf.h is given as typedef struct { char s[256]; } Wave; IM declares that sound magnitudes are positive numbers in the range of 0 to 255, so it seems more natural to use typedef struct { unsigned char s[256]; } Wave; (Only really matters when you are doing arithmetic on your waveforms...) Another problem... Does anyone know if Phase works correctly in the Sound Driver. When I start up more than one voice at a time, the relative phase seems to be almost random. Is there something missing in the documentation, or am I missing something. I assume that the variables soundXPhase should be a number between 0 and 255 which chooses the starting offset relative to the beginning of each waveform. But I do not get consistent behavior. It behaves as if there is some memory of where it was in the array, so that if I stop the sound, change the phase, and start again, it does not reinitialize completely. This is not a very good description of the problem, but would like to hear from any one who has played with phase in the sound driver... L. R. Custead Dept. of sound waves Univ of sask