Sound::getName

FMOD Studio API

Firelight Technologies FMOD Studio API

Sound::getName

Retrieves the name of a sound.

C++ Syntax

FMOD_RESULT Sound::getName(
  char *name,
  int namelen
);

C Syntax

FMOD_RESULT FMOD_Sound_GetName(
  FMOD_SOUND *sound,
  char *name,
  int namelen
);

C# Syntax

RESULT Sound.getName(
  StringBuilder name,
  int namelen
);

JavaScript Syntax

Sound.getName(
  name                             // writes value to name.val
);

Parameters

name
Address of a variable that receives the name of the sound encoded in a UTF-8 string.
namelen
Length in bytes of the target buffer to receieve the string.

Return Values

If the function succeeds then the return value is FMOD_OK.
If the function fails then the return value will be one of the values defined in the FMOD_RESULT enumeration.

Remarks

if FMOD_LOWMEM has been specified in System::createSound, this function will return "(null)".

JavaScript only :

Note: For the "name" parameter, the maximum string length is 512.

See Also




Version 1.10.03 Built on Feb 1, 2018