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
New Contributor
bobrowskip
Posts: 2
Registered: ‎02-28-2012
My Device: Playbook

getting implicit declaration of mmrenderer_event_get_state when attempting to use it in my code

When I try to use mmrenderer_event_get_state to determine if a track has finished playing I'm getting.

 

implicit declaration of function 'mmrenderer_event_get_state'

 

I can play sounds fine but I need to be able to determine when they've stopped so that I can restart them at the appropriate time.

 

When I look at the header file <mm/renderer.h> it doesn't contain a declaration for this function but when I look at the documentation specifically:

 

https://bdsc.webapps.blackberry.com/native/reference/com.qnx.doc.bps.lib_ref/com.qnx.doc.bps.lib_ref...

 

It lists 'mmrenderer_event_get_state' as being defined in this header as well as the associated required type

mmrenderer_state_t

 

I've spent too much time already trying to resolve this and I'm banging my head against the wall.

 

I'm using bbndk-2.0.0-beta3 and devloping the the IDE.

 

Any help would be appreciated.

 

Peter

BlackBerry Development Advisor
anhu
Posts: 54
Registered: ‎10-26-2011
My Device: Playbook

Re: getting implicit declaration of mmrenderer_event_get_state when attempting to use it in my code

Hi, 

 

So your main goal is to constantly repeat the audio. 

 

Please have a look a the following link: 

https://bdsc.webapps.blackberry.com/native/reference/com.qnx.doc.mme.mmrenderer/topic/mmr_api/mmr_in...

 

mmr_input_parameters() with the repeat parameter is likely what you're looking for.  

 

Best regards, 

Anthony

BlackBerry Development Advisor
smcveigh
Posts: 668
Registered: ‎11-29-2011
My Device: developer

Re: getting implicit declaration of mmrenderer_event_get_state when attempting to use it in my code

See also this thread where I gave some example code:

 

http://supportforums.blackberry.com/t5/Native-SDK-for-BlackBerry-Tablet/Multimedia-renderer-REPEAT-L...

 

Cheers,

Sean

BlackBerry Development Advisor
smcveigh
Posts: 668
Registered: ‎11-29-2011
My Device: developer

Re: getting implicit declaration of mmrenderer_event_get_state when attempting to use it in my code

Also, to answer your original question, I believe bps/mmrenderer.h is where these are defined.

The docs page doesn't seem to mention this as a required include.. I will pass the info along to the docs folks.

 

Cheers,

Sean