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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
New Contributor
Posts: 2
Registered: ‎02-28-2012
My Device: Playbook
My Carrier: TBayTel

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

Highlighted
Retired
Posts: 54
Registered: ‎10-26-2011
My Device: Playbook
My Carrier: Rogers

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
Posts: 683
Registered: ‎11-29-2011
My Device: PRIV
My Carrier: Rogers

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
Posts: 683
Registered: ‎11-29-2011
My Device: PRIV
My Carrier: Rogers

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