The sampling rate is the frequency at which the sound sample will be played back
or recorded. Do not change this value whilst SOUND_PLAYING@ or SOUND_RECORDING@
return a value of 1. The maximum value that is permissible is dependant of the
sound device being used and you should consult the relevant technical notes
supplied with it. Common Windows values are maximum 44100 (44.1KHz), midrange
22050 (22.05khz) and minimum 11025 (11.025khz) - also the default. It should
also be noted that there will be an absolute minimum. There is no sense in
recording at anything less than 8000 (Hz), which is approximately the same
sample rate as a telephone connection, as the recording quality would be too
low for practical use.
When selecting a suitable value it should also be noted that the sample rate
must be set to twice that of the maximum frequency you wish to record, this is
to preserve quality and reduce alias distortion.
If the maximum frequency to be recorded is 10khz (10000) then the sample rate
must be set to 20Khz (20000).
Note that this will require a large of amount storage.