In general it is not possible to tell the bit depth and the number of channels by analyzing the audio bytes. However, under certain conditions it is possible to exclude some combinations of bit depth and number of channels.
Assuming all audio bytes are still present, the following assumptions can be made:
divisible by 6: 24 bit stereo
divisible by 4: 16 bit stereo
divisible by 3: 24 bit mono
divisible by 2: 16 bit mono
The problem is that some of those cases apply at the same time, e.g. if the number is divisible by 6 it is also divisible by 3 and 2. Worst case would be multiples of 12, for which all possibilities would apply.
In general it is not possible to tell the bit depth and the number of channels by analyzing the audio bytes. However, under certain conditions it is possible to exclude some combinations of bit depth and number of channels.
Assuming all audio bytes are still present, the following assumptions can be made:
The problem is that some of those cases apply at the same time, e.g. if the number is divisible by 6 it is also divisible by 3 and 2. Worst case would be multiples of 12, for which all possibilities would apply.