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 Developer
Posts: 17
Registered: ‎04-14-2013
My Device: Simulator
My Carrier: Simulator

"Playing Audio" missing dependencies

[ Edited ]

Hi,

 

While most of the blackberry 10 tools are stellar (debugger & simulator), I found the documentation lacking and this is a suggested towards the documentation team.

 

So after gooling about how to play audio in BB10 I found this page :

 

http://developer.blackberry.com/native/documentation/bb10/recipe_play_audio_2006489_11.html

 

After copy-pasting most of the code into my app I noticed that the code doesn't even compile.

 

It needs and extra requirement

 

#include <sys/stat.h>

 

Then I found the code doesn't link. After about half an hour spent on getting samples about it I found the required libraries :

 

mmrndclient

strm

 

So now I can finally build my code (phew!). But really, the docs page should have a commentary section just like on MSDN where users can contribute fixes just in case you guys forget something, and in this example you forgot a lot...

 

EDIT: On a side note, it turns out that not even the PlayAudio sample works in the simulator. It throws an error 5 : MMR_ERROR_UNSUPPORTED_MEDIA_TYPE (for an mp3)

EDIT2: The sample project used an mp3 which apparently doesn't work, but it works with .wav so that's pretty good. I'm now wondering if mp3s fail on device as well or if they actually work... Oh yeah and the link above crashes my app. I had to comment "mmr_output_parameters" to make it work.

--------------------------------------------------------------------------
www.facebook.com/relativegames - My Apps