Use the sample rate stored in the stream_info struct instead of the audio_format struct.
Attach a file by drag & drop or click to upload