Quality of sound linked with sample rate and bit depth of audio stream.
Sample rate is number samples per second.
Sample is measurement of level audio signal at instant.
Digital audio signal is samples following one by one.
Each sample has bit depth.
More about sample rate here...
Bit depth is maximal number of value of sample.
Or bith depth is maximal number of value of measurement.
More about bit depth here...