avengre
15-09-2010 18:07:58
Is there any method for having a sound start before the last instance or Play() of it has?
I'm trying to make a mouse Over noise using CEGUI, and it works great. However the sound takes ~ 0.5s to play. If the mouse is moved quickly across multiple buttons, a new sound won't play until the last one has played.
I keep a sound instance loaded which is called via a Manager, ie AudioManager->playMouseOverClick();
I assumed this would be faster than releasing and recreating the sound name every time the mouseOver occurs.
Short of checking if the sound exists, creating a unique name for it, loading the sound, playing it, and deleting it for every instance... is there a better way?
I'm trying to make a mouse Over noise using CEGUI, and it works great. However the sound takes ~ 0.5s to play. If the mouse is moved quickly across multiple buttons, a new sound won't play until the last one has played.
I keep a sound instance loaded which is called via a Manager, ie AudioManager->playMouseOverClick();
I assumed this would be faster than releasing and recreating the sound name every time the mouseOver occurs.
Short of checking if the sound exists, creating a unique name for it, loading the sound, playing it, and deleting it for every instance... is there a better way?