That function fills the soundbuffer with random noise but what I do not understand is whyCode:void AudioCallback(void *userdata, Uint8 *buffer, int len) { for(int index = 0; index < len; index++) buffer[index] = rand()%256; }
nothing can be heard at all if I change rand()%256 to always be, 205 for example, any suggestions?
In other words I can't hear any sounds if the whole buffer contains the same value.