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

Regular Contributor
Posts: 70
Registered: ‎09-06-2012
My Device: Developer
My Carrier: Bell Mobility

Audio Support

Is there audio support in BB10 NDK for internally generated audio files (midi, byte arrarys) similar to tone player on BB? Or, an API that can be imported into NDK?

Posts: 155
Registered: ‎07-16-2012
My Device: Dev Alpha
My Carrier: Bell

Re: Audio Support

Hi pskarton,


welcome to the forums, so, you may want to check this out. https://developer.blackberry.com/native/documentation/recipe_play_audio_1935324_11.html


Hope this helps.

Posts: 1,807
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-, Z10 (STL100-3)-, Z30 (STA100-5)-, Passport (SQW100-1)-, PlayBook (16GB)-
My Carrier: Verizon

Re: Audio Support

I think he's interested in support for MIDI.
---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.
Regular Contributor
Posts: 70
Registered: ‎09-06-2012
My Device: Developer
My Carrier: Bell Mobility

Re: Audio Support

No actually it doesn't help and that is why I posted this message. I'm not trying to play external files but pass a byte array generated inside tha application in a midi or other format as is currently done on the BB in I believe three different ways none of which appear to be supported as yet on the BB10.

BlackBerry Development Advisor
Posts: 683
Registered: ‎11-29-2011
My Device: PRIV
My Carrier: Rogers

Re: Audio Support

A PCM byte array?  That can be done.

MIDI?  You probably need a library for that.  I don't believe we have one on the platform.


Try searching around for a free MIDI to PCM conversion library that you can compile and use.  If it works for you, consider publishing a port to github for other BB10 developers to use! Smiley Happy




Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: Audio Support

smcveigh wrote:

A PCM byte array?  That can be done.


Specifically, see https://developer.blackberry.com/native/beta/reference/audio_libref/topic/summary.html


Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!