Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Contributor
yohanip
Posts: 23
Registered: ‎11-19-2012
My Device: Playbook
My Carrier: Three

[Playbook - mmrenderer]Realtime music position

Hello there fellow programmer :smileyhappy:

anyone know how to get realtime position of the music played using mmrenderer?

currently i'm polling music position from the event system

and the music/event position is not updated in realtime, there seems to be some kind of a delay on each update,

the event is not updated each game loop

 

here is the code i'm using to "poll" for music position

 

			else if (domain == mmrenderer_get_domain())
			{
				const char * posChar = mmrenderer_event_get_position(event);

				//convert to int
				irr::s32 p = 0;
				if (posChar)
					p = atoi(posChar);

Tried to synchronize it using a custom "timer", but if it is possible to directly retrieve the position, it would be very gre.. err scratch that.. it would be very loveable..

 

Thank you for your time, any help would be much apprecited! :smileyvery-happy:

Cheers!

Please use plain text.
Contributor
yohanip
Posts: 23
Registered: ‎11-19-2012
My Device: Playbook
My Carrier: Three

anyone? or is it not possible atm retrieving realtime mus...

anyone? or is it not possible atm retrieving realtime music player mmrenderer progress?

Please use plain text.
Trusted Contributor
taylor-tomt
Posts: 231
Registered: ‎11-19-2010
My Device: Z10, Playbook

Re: anyone? or is it not possible atm retrieving realtime mus...

Check the NDK release notes. I seem to remember seeing something about mmrender. May or may not be related to your question.

Please use plain text.