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
BlackBerry Development Advisor (Retired)
epelegrillopart
Posts: 99
Registered: ‎10-03-2009
My Device: Not Specified

Re: Porting openFrameworks (need help with the audio/QSA part)

OK, you are already working with Roberto.  I added him to the thread with the other RIM folks - who are a tad busy with BB10Jam/BBWorld, but we will see what we can do.

 

 

Please use plain text.
Trusted Contributor
sucroid
Posts: 195
Registered: ‎03-12-2012
My Device: PlayBook
My Carrier: None

Re: Porting openFrameworks (need help with the audio/QSA part)

I'll be going to the BB 10 Jam.  If there is going to be an audio session, that'll be great.

Sucroid.com
Sweet Apps for the Fans
Please use plain text.
New Contributor
seths
Posts: 8
Registered: ‎04-09-2012
My Device: Playbook
My Carrier: ATT

Re: Porting openFrameworks (need help with the audio/QSA part)

[ Edited ]

A quick update on lmuller and my progress on the openFrameworks port of the audio.

 

We seem to have audio working now using SDL for PlayBook. Of course, we'd still love to use PortAudio instead if that gets ported over. We tried for a few days to use the QSA API directly but were having a hard time getting everything working properly. We still haven't figured out exactly what SDL is doing differently than us, but we're happy it's working for now.

 

Here's a video of the basic openFramewokrs synthesis example. The Y-axis is pitch and X-axies is paning:

 

http://www.youtube.com/watch?v=NwaKNtJQSn4

 

And here's our app 'NodeBeat' that'll we'll be submitting to AppWorld once we finish the details. All the audio (except drums) is synthesised in real-time.

 

http://www.youtube.com/watch?v=nCCX65Zu8sk

 

 

Lastly, here's a video of all the openFrameworks examples running (this was before we fixed the audio):

 

http://www.youtube.com/watch?v=4FuC9AEg1LQ

 

We'll be committing the new SDL-based code to our github in the next day or so. We still need to test this on the actual PlayBook. lmuller's is 'in the shop' and I still need to get one :smileywink: (gifts are welcome hah!).

 

 

 

 

Please use plain text.
New Developer
lmuller
Posts: 20
Registered: ‎03-27-2012
My Device: Z10 LE, PlayBook & Dev Alpha C
My Carrier: Vodafone

Re: Porting openFrameworks (need help with the audio/QSA part)

Small update, major thanks to Seth for implementing the SoundStreamer class with SDL!

 

I received my PlayBook back from servicing, so here is the NodeBeat Beta running on real hardware (its very responsive compared to Android):

 

http://youtu.be/xhZ46PpccGQ?hd=1

 

and all the demos:

http://youtu.be/JLE3v-QRa74?hd=1

 

The updated OF code is as usual on GitHub.

Please use plain text.
Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: Porting openFrameworks (need help with the audio/QSA part)

Will you be posting the Boost library port?
Please use plain text.
BlackBerry Development Advisor (Retired)
epelegrillopart
Posts: 99
Registered: ‎10-03-2009
My Device: Not Specified

Re: Porting openFrameworks (need help with the audio/QSA part)

Let's coordinate on Boost.  There is an internal port/consolidation that is making its (slow) way out.


But, yes, if you already ported Boost, let's coordinate

Please use plain text.
Trusted Contributor
sucroid
Posts: 195
Registered: ‎03-12-2012
My Device: PlayBook
My Carrier: None

Re: Porting openFrameworks (need help with the audio/QSA part)

Is there someone from RIM working on PortAudio already or am I alone on this at the moment?

Sucroid.com
Sweet Apps for the Fans
Please use plain text.
New Developer
lmuller
Posts: 20
Registered: ‎03-27-2012
My Device: Z10 LE, PlayBook & Dev Alpha C
My Carrier: Vodafone

Re: Porting openFrameworks (need help with the audio/QSA part)

[ Edited ]

@jtegen

 

As mentioned in my README.txt of ofxQNX:

 

 

* Boost 
- http://www.boost.org/
- Included version is 1.49.0
- Required because "std::tr1::shared_ptr" and "std::tr1::weak_ptr" are not available from the Native SDK (#include <boost/tr1/memory.hpp>)
- The included version has been stripped down for use with openFrameworks.

 

https://github.com/falcon4ever/openFrameworks/tree/developPlayBook/addons/ofxQNX/libs/boost

 

I actually didnt had to patch anything to make it work with OF (its headers only)

Please use plain text.
Developer
BikeAtor
Posts: 62
Registered: ‎03-31-2012
My Device: Playbook
My Carrier: None

Re: Porting openFrameworks (need help with the audio/QSA part)

portaudio sounds good. I'd like to have a tts-library and espeak depends on portaudio. So I hope portaudio will be available soon.

Please use plain text.
New Developer
lmuller
Posts: 20
Registered: ‎03-27-2012
My Device: Z10 LE, PlayBook & Dev Alpha C
My Carrier: Vodafone

Re: Porting openFrameworks (need help with the audio/QSA part)

[ Edited ]

Just a small update on ofxQNX, the addon is I would say in a pretty good and usable state now. With NodeBeat as our guinea pig, it seems to run just fine.

 

I recently added some minor fixes and also added support for keyboard input today. To help out other devs, I created a screencast ( http://www.youtube.com/watch?v=CwQGHQN5fAA ) that shows how to setup ofxQNX from scratch and build one of the examples. I will probably make a blog post about ofxQNX later this week.

 

The only part that is still lacking in ofxQNX is the VideoGrabber and the SoundPlayer. Since the current Native sdk doesnt have access to the cameras, I'll postpone the VideoGrabber implementation until the next OS update (It would be a killer combo with OpenCV).

For the SoundPlayer I was planning to use OpenAL since I saw that there was already an implementation in the repository. Unfortunately that class fails to compile due to the need of libsndfile. I tried to download the source from http://www.mega-nerd.com/libsndfile/ . The website says it supports qnx 6.0 (the playbook runs qnx 6.5) but when trying to compile it with QCC, it fails.

Please use plain text.