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
Regular Contributor
pskarton
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?

Please use plain text.
BlackBerry Development Advisor (Retired)
amarcon
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.

Please use plain text.
Developer
rcmaniac25
Posts: 1,804
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-10.2.1.2174, Z10 (STL100-3)-10.3.0.700 Dev OS, Z30 (STA100-5)-10.3.0.700 Dev OS, PlayBook (16GB)-2.1.0.1917
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.
Please use plain text.
Regular Contributor
pskarton
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.

Please use plain text.
BlackBerry Development Advisor
smcveigh
Posts: 666
Registered: ‎11-29-2011
My Device: developer
My Carrier: other

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! :smileyhappy:

 

Cheers,

Sean

Please use plain text.
Developer
peter9477
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!
Please use plain text.