[sldev] [HELP] passing aLLMediaObserver::onMediaMetaInfoChangeeventfrom llmediaimplwhatsoever to llviewermedia does just nothing

Kent Quirk (Q Linden) q at lindenlab.com
Tue Feb 17 07:06:16 PST 2009


I was pretty sure it was a problem with pointers-to-members and  
subclasses, but I stared at it for a while and couldn't convince  
myself it was wrong.

Just to make sure that's not the case, you might stick a log message  
in the default implementation of the change event in the base class.  
If that fires instead of the subclass event, the problem is that you  
have a reference to the wrong class when you're dereferencing the  
pointer-to-member.

	Q

On Feb 17, 2009, at 8:05 AM, Tofu Linden wrote:

> I checked with a media guy, he says:
> "That all looks fine to me. I'd suggest adding a break point in
> LLMediaEmitter::addObserver() and LLMediaEmitter::update() and seeing
> what happens."
>
> Armin Weatherwax wrote:
>> Hi,
>> I'm trying to pass audio stream meta data (Artist, Title) to  
>> llviewermedia and
>> for that I want to inform llviewermedia that  meta data was changed  
>> (if so).
>> so my  llmediaimpl does in its updateMedia()
>> 	LLMediaEvent event( this );
>> 	mEventEmitter.update( &LLMediaObserver::onMediaMetaInfoChange,  
>> event );
>> llmediaobserver has a
>> 	virtual void onMediaMetaInfoChange( const EventType& event_in ) { }
>> and llviewermedia has a
>> 	void onMediaMetaInfoChange(const EventType& event_in);
>>
>> ... but the void onMediaMetaInfoChange does never trigger. So what  
>> I'm missing
>> to let it work ?
>>
>>
>> thanks in advance
>> :) Armin
>> _______________________________________________
>> Policies and (un)subscribe information available here:
>> http://wiki.secondlife.com/wiki/SLDev
>> Please read the policies before posting to keep unmoderated posting  
>> privileges
> _______________________________________________
> Policies and (un)subscribe information available here:
> http://wiki.secondlife.com/wiki/SLDev
> Please read the policies before posting to keep unmoderated posting  
> privileges



More information about the SLDev mailing list