title: How do you convert a stream of PCM audio samples to volume?
body: <p>I can get an array of <a href="https://github.com/Xeoncross/wav/blob/master/reader.go#L247" rel="nofollow noreferrer">unsigned 32 bit ints from a WAV file</a>.</p>
  
  <pre><code>65509
  65402
  65518
  65520
  65521
  ...
  </code></pre>
  
  <p>How can I convert these ints (or the original bytes) into a volume level for the stream?</p>