hgeResourceManager::GetMusic

Returns handle to a named music.

HMUSIC GetMusic(
  const char *name
);

Parameters

name
Music name.

Return value

If successful, returns handle to the music. 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 music hasn't been loaded yet, it will be loaded. Otherwise handle to the existing music will be returned.

Requirements

Header: hgeresource.h
Import library: hgehelp.lib