Can anyone explain to me what buffering is , what it does, and provide a coded example for me please
many thanks
Can anyone explain to me what buffering is , what it does, and provide a coded example for me please
many thanks
Very simply put, "buffering" is the process of allocating a RAMblock of arbitrary size and then have one process read from it at a steady rate (such as playback of audio data), while another, faster routine, keeps the buffer filled.
This kind of thing is used when you want steady availability of data, such as sound, or raw when burning a CD, etc. One routine reads it out of the buffer while the other routine makes sure the buffer stays full.
Iit is like the anti-shock mechanism that cd players use...First it record the cd (a few seconds) into a buffer, and the audio is actually played from the buffer, instead of directly from the cd. This way, the cd can skip, and the audio will still continue to play.
i think he means in c programming
sorry i didnt make myself clear
im talking of buffering in terms of C programming