Error message

  • Notice: Undefined index: comment_node_geshinode_form in drupal_retrieve_form() (line 752 of /home/realdev/public_html/includes/form.inc).
  • Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'comment_node_geshinode_form' not found or invalid function name in drupal_retrieve_form() (line 787 of /home/realdev/public_html/includes/form.inc).

C# - Sound Handling - #xna

namespace GIADBase
{
class SoundHandler
{
public float GlobalVolume = 0.5f;
protected Dictionary SoundEffects = new Dictionary();

public bool AddSoundEffect(string path, SoundEffect soundEffect)
{
if (!SoundEffects.Keys.Contains(path))
{
SoundEffects.Add(path, soundEffect);
}
else { return false; }
return true;
}

public int PlaySoundEffect(string path, float Volume, float Pitch, float Pan)
{
SoundEffects[path].Play(Volume * GlobalVolume, Pitch, Pan);
return 0;
}

//TODO: add music playing here
}
}

No comments available.

Add new comment