Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

MMFDevSound API

From Wiki
Jump to: navigation, search
Article Metadata
Code ExampleArticle
Created: ltomuta (17 Jun 2007)
Last edited: hamishwillee (14 Jun 2013)

Note.pngNote: :This API is not part of the public SDK. It can be found in the SDK API Plug-in.

Contents

API Purpose

CMMFDevSound is the interface from Symbian OS to the raw audio functions on the device hardware.

DevSound is currently loaded as a DLL, and implements the VCR-type functions to be expected for such an interface.

The audio functions include the following functionality:

(i)Initialisation and configuration of hardware devices, for example, setting microphone gain, setting stereo balance and so on.

(ii)The playing and recording of raw audio data.

(iii)The playing and dynamic control of tones with user specified frequencies.

(iv)The playing of DTMF strings.


Use case

To stream and play an audio file( of type AMR ) from the local phone memory to the speaker.

Example project

Here is the URL for the basic DevSound player sample application, which demonstrates the following things:

(i) How to initialize the DevSound object.

(ii) How to load the audio data in to data buffers of DevSound.

(iii) How to handle the callbacks of the MDevSoundObserver class and play the audio content accordingly.

File:DevSoundExample.zip

Note that the same application can be used to develop a DevSound recorder by implementing and initializing the DevSound object appropriately.


Known Issues

Archived:Audio stream is left in inconsistent state after a panic on S60 2nd Edition (Known Issue)

This page was last modified on 14 June 2013, at 04:52.
40 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×