title: Core Audio - Buffer Calculuation
body: <p>I'm reading through the Core Audio documentation and specifically an example for calculating a buffer size based on packet information in an audio file.  Because this topic is so nuanced I want to make sure I understand things clearly.  In the function they define these constants:</p>
  
  <pre><code> static const int maxBufferSize = 0x10000;   // limit maximum size to 64K
  static const int minBufferSize = 0x4000;    // limit minimum size to 16K
  </code></pre>
  
  <p>It seems to me that these values are not precise based on those comments.  The hexadecimal number 0x10000 is 65536 in decimal.  Whereas there are only 64k bytes in 64K (I'm assuming that means kilobytes?).  The same goes for 0x4000 which is 384 decimal value greater than 16kb's if my arithmetic is right.</p>
  
  <p>I'm just curious if these things are meant to be rough values.  Given that Core Audio is relatively complex I want to make sure I'm not missing something here.</p>