title: Finding number of samples in .wav file and Hex Editor
body: <p>Need help with Hex Editor and audio files.I am having trouble figuring out the formula to get the number of samples in my .wav files.</p>
  
  <p>I downloaded StripWav which tells me the number of samples in the .waves,but still cannot figure out the formula.</p>
  
  <p>Can you please download these two .wavs,open them in a hex editor and tell me the formula to get the number of samples.</p>
  
  <p>If you so kindly do this for me,pleas tell me the number of samples for each .wav so I can make sure the formula is correct.</p>
  
  <p><a href="http://sinewavemultimedia.com/1wav.wav" rel="nofollow">http://sinewavemultimedia.com/1wav.wav</a>
  http://sinewavemultimedia.com/2wav.wav</p>
  
  <p>Here is a problem I have two programs,</p>
  
  <p>One reads the wav data and the other shows the numsamples
  here is the data</p>
  
  <pre><code>RIFF 'WAVE' (wave file)
          &lt;fmt &gt; (format description)
                  PCM format
                  2 channel
                  44100 frames per sec
                  176400 bytes per sec
                  4 bytes per frame
                  16 bits per sample
          &lt;data&gt; (waveform data - 92252 bytes)
  </code></pre>
  
  <p>But the other program says NumSamples is</p>
  
  <pre><code>23,063 samples
  </code></pre>
  
  <p>/<strong><em>*</em>**<em>*</em>**<em>*</em></strong><em>UPDATE</em><strong><em>*</em>**<em>*</em>**<em>*</em>**</strong>/
  One more thing I did the calculation with 2 files
  This one is correct</p>
  
  <pre><code>92,296 bytes and num samples is 23,063` 
  </code></pre>
  
  <p>But this other one is not coming out correctly it is over 2 megs i just subracted 44 bytes and I doing it wrong here? here is the filesize</p>
  
  <pre><code>2,473,696 bytes 
  </code></pre>
  
  <p>But the correct numsamples is</p>
  
  <pre><code> 617,400
  </code></pre>