From: Braden M. <br...@en...> - 2002-04-25 04:44:05
|
On Sun, 2002-04-21 at 10:03, -oli- wrote: > How can I find out from within the class NodeAudioClip if the AudioClip > node is [currently] child (i.e. source) of a Sound node? You can't really do that. > I need this to determine if the audio data has to be played or not, because > this check is done in the method NodeAudioClip::update(). Perhaps this logic belongs in Sound rather than AudioClip. Remember, MovieTextures can be sound sources, too. As such, it seems like we'd want to reuse the same logic regardless of what our sound source is. -- Braden McDaniel e-mail: <br...@en...> <http://endoframe.com> Jabber: <br...@ja...> |