Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Win 2 API - <b>setsoundnoise</b> set source and duration of noise http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
SetSoundNoise        Set Source And Duration Of Noise

int bSetSoundNoise(nSource, nDuration)
int nSource;
int nDuration; /* in clock ticks */

                        nSource
        |----------------------------------------------------------|
        | S_PERIOD512   freq = N/512 high pitch, less coarse hiss  |
        | S_PERIOD1024  freq = N/1024                              |
        | S_PERIOD2048  freq = N/2048 low pitch, more coarse hiss  |
        | S_PERIODVOICE source is frequency from voice channel (3) |
        |                                                          |
        | S_WHITE512    freq = N/512 high pitch, less coarse hiss  |
        | S_WHITE1024   freq = N/1024                              |
        | S_WHITE2048   freq = N/2048 low pitch, more coarse hiss  |
        | S_WHITEVOICE  source is frequency from voice channel (3) |
        +----------------------------------------------------------+

Returns:    Zero if successful, if source is invalid the S_SERDSR.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson