Welcome Guest [Log In] [Register]
Viewing Single Post From: Epee Engine
Alan
Administrator
[ *  *  * ]
Sound * FindSound(std::string _name);

Public function of the Epee Engine Class

Description:
Does a bubble search through the sound list until the sound is found or until it has searched the whole list.

Notes:
If the sound list is very long this function could take time.
The last found sound is cached so sequential calls to this function with the same name do not cost performance.


Arguments:

Required:
std::string _name
name of the sound to find in the sound list

Return Value:
If the sound is found in the list a pointer to the sound object is return other wise a NULL pointer is returned.
Offline Profile Quote Post
Epee Engine · Documentation