hgeResourceManager::GetEffect

Returns handle to a named sound effect.

HEFFECT GetEffect(
  const char *name
);

Parameters

name
Sound effect name.

Return value

If successful, returns handle to the sound effect. Otherwise returns 0.

Remarks

You could use the name defined in the resource script or just a plain file name, either absolute or relative to the application folder or resource package root.

If the sound effect hasn't been loaded yet, it will be loaded. Otherwise handle to the existing effect will be returned.

Requirements

Header: hgeresource.h
Import library: hgehelp.lib