title: FMod Memory Stream Problem
body: <p>EDIT: Well...that's very interesting.  I made settings into a pointer and passed that.  Worked beautifully.  So, this is solved.  I'll leave it open for anyone curious to the answer.</p>
  
  <p>I'm having an issue creating a sound in FMod from a memory stream.  I looked at the loadfrommemory example shipped with FMod and followed that.  First, the code I'm using...</p>
  
  <pre><code>CSFX::CSFX(CFileData *fileData)
  {
  FMOD_RESULT result;
  FMOD_CREATESOUNDEXINFO settings;
  settings.cbsize = sizeof(FMOD_CREATESOUNDEXINFO);
  settings.length = fileData-&gt;getSize();
  _Sound = 0;
  std::string temp = "";
  
  for (int i = 0; i &lt; fileData-&gt;getSize(); i++)
      temp += fileData-&gt;getData()[i];
  
  result = tempSys-&gt;createSound(temp.c_str(), FMOD_SOFTWARE | FMOD_OPENMEMORY, &amp;settings,        &amp;_Sound);
  }
  </code></pre>
  
  <p>As it is like this, I get an access violation on tempSys->createSound().  I've confirmed that tempSys is valid as it works when creating sounds from a file.  I've also confirmed the char * with my data is valid by writing the contents to a file, which I was then able to open in Media Player.  I have a feeling there's a problem with settings.  If I change that parameter to 0, the program doesn't blow up and I end up with result = FMOD_ERR_INVALID_HANDLE (which makes sense considering the 3rd parameter is 0).  Any idea what I'm doing wrong?</p>
  
  <p>Also, please disregard the use of std::string, I was using it for some testing purposes.</p>