[Recommended] sound problems in brew

Source: Internet
Author: User
A. isoundplayer does not seem to work on my device. Why?
Applicable versions: 1.0, 1.1, 2.0
The isoundplayer interface requires multimedia support (compact multimedia extension-cmx of Qualcomm or similar) on the device ). For example, Kyocera 3035 does not have cmx, and therefore does not support the isoundplayer interface.

B. How to insert a mute part in the tone sequence?
Applicable versions: 1.0, 1.1, 2.0
In brew SDK & reg; 1.1 and later versions, you can use aeesoundtone aee_tone_silence to insert a mute part. Brew SDK & reg; version 1.0 does not support mute insertion. If you are using SDK 1.0, you can choose a tone similar to mute, or stop playing for a period of time, and then continue playing.

C. isound_vibrate does not seem to work on my phone. Why?
Applicable versions: 1.0, 1.1, 2.0
This feature requires OEM support. OEM is not required to implement this function.

D. Does brew support MP3 playback?
Applicable versions: 1.0, 1.1, 2.0
Yes. As long as the device chip set and the above multimedia layer (cmx or similar) (with MP3 decoder) exist, brew can support playing MP3 files through the isoundplayer interface.

For more information about the functions of different devices, see telephone materials.

E. What MIDI formats does brew support?
Applicable versions: 1.0, 1.1, 2.0
All brew versions support the MIDI format smf0 (Standard MIDI format) and smf1.

F. Does brew support WAV file playback? How to create files in qcp format?
Applicable versions: 1.0, 1.1, 2.0
Brew 1.0, 1.1, and 2.0 do not support playing wav files. The purevoice convertor utility tool provided with brew SDK & reg; 1.1 and later versions can convert. wav files to. qcp (and vice versa ).

Does G. Brew support the PMD format?
Applicable versions: 1.0, 1.1, 2.0
The PMD file contains audio and/or video. Brew 2.0 can play together audio and video information. Brew 1.0 and 1.1 can only play audio files. OEM must support the playback of information on devices.

H. How can I obtain detailed information about cmx?
Applicable versions: 1.0, 1.1, 2.0
Visit the following link: http://www.cdmatech.com/solutions/#/cmx_faq.htm. To play the cmx file in the simulator, you need to install the cmx player (which can be found in the developer tool on the developer's external network ).

I. How can I obtain detailed information about the Yamaha MMF format?
Applicable versions: All
For more information about Yamaha smaf format (. MMF file), see http://smaf-yamaha.com

J. Can I simulate playback of Yamaha smaf files in brew SDK & reg?
Applicable version: 2.1
You can simulate playing smaf In the brew 2.1 SDK. To enable this feature, first download the smaf simulation component from the http://smaf-yamaha.com/brew/ and then copy the downloaded file to the following directory:

Ma3smwemu. DLL to $ brewdir/bin/modules
Jazz35s. Mid and jazz35s. MMF to $ brewdir/bin/datafiles

($ Brewdir indicates the root directory of brew SDK & reg; 2.1)

K. Why does the memory dead-time error occur when isoundplayer is used?
Applicable versions: 1.0, 1.1, 2.0
In brew versions 1.1 and 2.0, calling isoundplayer_setinfo () allows you to allocate memory from an internal file name (if played from a file) or a buffer (if played from a buffer. Once the audio player no longer needs this memory, it must be released. This can be done by calling isoundplayer_setinfo (..., null.

L. It seems that the audio file is playing at a fixed volume. Which API can be used to control the volume?
Applicable versions: 1.0, 1.1, 2.0
Use isound_setvolume () to control the volume. To transmit the sound to an external speaker (if the handheld device is equipped with it), aeesoundinfo for the ringing/key-click beep. set Method to aee_sound_method_ring/aee_sound_method_beep and use isound_set () and isound_setdevice () to set aeesoundinfo. set edevice to aee_sound_device_handset.

M. Can I play multiple tones simultaneously?
Applicable versions: 1.0, 1.1, 2.0
Brew version 2.0 can use the imedia interface to play multiple qcp files simultaneously (up to four) on cmx 2.x-based devices ). In addition, you can play one MIDI file while playing four qcp files, that is, you can play five (4qcp + 1 MIDI) different files at the same time. To implement this operation, you can call ishell_createinstance (..., aeeclsid_mediamidioutqcp) to create four imedia objects for midioutqcp. Call imedia_setmediadata to initialize each object using its own data, and then use imedia_play () for playback.

Brew versions 1.0 and 1.1 cannot play both tones and files. If the second tone is required to be played before the first tone is called, The first tone is aborted.

N. How to load multiple sound files without exceeding the maximum number of files?
Applicable versions: 1.0, 1.1, 2.0
One feasible solution is to store multiple audio files as one file. You can load the corresponding audio clip into a buffer, and then play the video from the buffer using isoundplayer_setstream.

For example:
// Open the file and read and store it to the application file pointer.
PME-> m_pifile = ifilemgr_openfile (PME-> m_pifilemgr, PME-> multiplemidifile, _ ofm_read );

If (! PME-> m_pifile)
Return false;

// Calculate desired_offset (not displayed)

If (ifile_seek (PME-> m_pifile, _ seek_start, desired_offset )! = Success)
Return false;

// The function triggers the aee_soundplayer_status callback not at the same time.
Isoundplayer_setstream (PME-> m_pisoundplayer, (iastream *) PME-> m_pifile );

O. Where can I store the ringing file? Where is the ringing File Created by the iringermgr_create () function?
Applicable versions: 1.0, 1.1, 2.0
The ringing sound file used by the handheld device should be stored in the aee_ringer_dir directory. This directory is determined by the OEM and the corresponding path is also stored by the OEM in this constant. The iringermgr_create function creates a file in the zhenling directory according to the definition of the aee_ringer_dir constant.

Make sure that your application has the following permission levels when creating a vibrator:
In brew v 1.0: Select the "Write Permission for shared directory" check box.
In brew v 1.1 or a later version: Select the "Write Permission for the ringing directory" check box.

P. Can I use the brew API to set the ringing tone on the device?
Applicable versions: 1.0, 1.1, 2.0
You can use the iringermgr_setringer API to set the ringing tone. However, this feature still requires OEM support. Some OEMs do not support this function, so you need to use the local UI to set the ring.

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.