custead@sask.UUCP (Der cuss) (02/10/85)
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