BlackBerry 10 non-CASCADES/QT program playback MP3

Source: Internet
Author: User

==============================================================

The following are used in non-QT projects.

==============================================================

The BB10 IDE comes with a playaudio example program.


To create a clean project:

Select Menu New--BlackBerry C + + Project

Select Minimal Screen Application

1) Copy the playbook inside the source code, MP3 file over.

2) Modify the Bar-descriptor.xml and add the mp3 file to the assets.


3) The default program is not authorized to play sound.

Workaround:

Modify Bar-descriptor.xml to increase the permissions of play sounds.


4) Compile Error:

Undefined reference to ' Mmr_error_info '

Workaround:

A libraries:mmrndclient is added to the project properties, as pictured.


5) Compile again, the project has no Red fork, but the development tool console inside Error:

/home/jiyang/bbndk-10.0.4-beta/target/qnx6/x86/lib/libmmrndclient.so:undefined reference to ' Strm_dict_key_get '

Workaround:

A LIBRARIES:STRM is added to the project properties.


Note: The following words can be seen at compile time:

Qcc-o HelloWorld1 SRC/MAIN.O src/dialogutil.o-lbps-lpps-lscreen-lm-lmmrndclient-lstrm-v4.6.3,gcc_ntox86-w1-g-Wl ,-z,relro-wl,-z,now-l/home/jiyang/bbndk-10.0.4-beta/target/qnx6/. /target-override/x86/lib-l/home/jiyang/bbndk-10.0.4-beta/target/qnx6/. /target-override/x86/usr/lib





Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.