title: load somesound.bank and play, c++ with fmod
body: <p>i am trying to use fmod with a c++ project and created a soundbank.
  when i try to load it, no error is shown but it wont play any sound.</p>
  
  <p>here is the <em>soundengine.h:</em></p>
  
  <pre><code>...
  static FMOD_RESULT result;
  static FMOD::Studio::System * fmodStudio;
  static FMOD::Studio::Bank* masterBank;
  static FMOD::Studio::EventDescription * eventDesc;
  static FMOD::Studio::EventInstance * engine;
  ...
  static void loadBank();
  </code></pre>
  
  <p>and <em>soundengine.cpp</em></p>
  
  <pre><code>...
  FMOD::Studio::System * SoundEngine::fmodStudio;
  FMOD::Studio::Bank * SoundEngine::masterBank;
  FMOD::Studio::EventDescription * SoundEngine::eventDesc;
  FMOD::Studio::EventInstance * SoundEngine::engine;
  ...
  
  void SoundEngine::initialise (void) 
  {
  result = FMOD::Studio::System::create(&amp;fmodStudio);
  if (result != FMOD_OK) possible = false; 
  if (possible)result = fmodStudio-&gt;initialize(320, FMOD_STUDIO_INIT_NORMAL, FMOD_INIT_NORMAL, 0);
  if (result != FMOD_OK) possible = false;
  //sets initial sound volume (mute)
  if (possible) channel-&gt;setVolume(0.0f);
  fmodStudio-&gt;update();
  }
  
  void SoundEngine::loadBank()
  {
  //load master bank
  if (possible)result = fmodStudio-&gt;loadBankFile("EnvironmentSound.bank", FMOD_STUDIO_LOAD_BANK_NORMAL, &amp;masterBank);
  if (result != FMOD_OK) possible = false;
  result = fmodStudio-&gt;getEvent("event:/StaticSounds/Engine", &amp;eventDesc);
  result = eventDesc-&gt;createInstance(&amp;engine);
  engine-&gt;start();
  fmodStudio-&gt;update();
  }
  </code></pre>
  
  <p>then i simply call the <em>SoundEngine::loadBank();</em> in <em>main.cpp</em>
  it runs and all but there is no sound. i placed <em>EnvironmentSound.bank</em> in the same folder of <em>main.cpp</em>, not sure about the <em>"event:/StaticSounds/Engine"</em> though. as i just followed the example of fmod <em>simple_event.cpp</em><br><br>
  <strong>Can anyone point out the mistakes i make?
  if there isnt enough info please let me know.</strong></p>