title: How to use offset parameter of StreamCreateFile in BASS library?
body: <p>I am trying to use the <a href="http://www.un4seen.com/" rel="nofollow">BASS library</a> to do some audio editing, so if anyone is familiar with the library can hopefully help me.</p>
  
  <p>The function I'm using is </p>
  
  <pre><code>Bass.BASS_StreamCreateFile(filename, offset, length, flags);
  </code></pre>
  
  <p>For a little background, I'm using Bass.net wrapper, am working with all mp3 files.  The actual code I'm using this function with is:</p>
  
  <pre><code>int baseStream = Bass.BASS_StreamCreateFile(filename, startTimeBytes, durationBaseBytes, BASSFlag.BASS_STREAM_PRESCAN | BASSFlag.BASS_STREAM_DECODE | BASSFlag.BASS_SAMPLE_FLOAT);
  </code></pre>
  
  <p>Whenever the offset  (startTimeBytes) equals 0, the stream is created just fine, but whenever the offset is non-zero, the method returns 0, and the error code given is BASS_ERROR_FILEFORM.  However, the files used work fine without the offset (offset = 0).</p>
  
  <p>Maybe there is something wrong with the flags I'm using or something?  </p>