Community: Wiki

你在这里: You Are Here: Olet tässä: Vous êtes ici: Sie befinden sich hier: Tu sei qui: 現在のページ: Você está aqui: Вы здесь: Usted está aquí:
This page was last modified 12:31, 9 October 2008.

CS001133 - Adding bass boost to the audio player

From Forum Nokia Wiki



ID CS001133 Creation date October 9, 2008
Platform S60 3rd Edition Tested on devices Nokia N95
Category Symbian C++ Subcategory Audio


Keywords (APIs, classes, methods, functions): CBassBoost


Overview

The S60 platform has several audio enhancement APIs that can be used to modify the audio experience. One of them is the CBassBoost API.

This snippet can be self-signed.

Preconditions

The audio player must be fully constructed before constructing the instance of the API. This can be done with the following lines of code:

iMdaAudioPlayerUtility =
   CMdaAudioPlayerUtility::NewFilePlayerL(aFileName,
                                          *this,
                                          EMdaPriorityNormal,
                                          EMdaPriorityPreferenceTimeAndQuality);

MMP file

The following capabilities and libraries are required:

CAPABILITY NONE

LIBRARY BassBoostEffect.lib

HEADER bassboostbase.h


Source file

First you need to construct the reverb utility instance:

iBassBoost = CBassBoost::NewL(*iMdaAudioPlayerUtility);

To set the bass boost on, you just need to call the following two lines of code:

iBassBoost->EnableL();
 iBassBoost->ApplyL();

To set the bass boost off, just call following line of code:

iBassBoost->DisableL();


Test application

Image:PlayerExtrasExample.zip

See also

CS001130 - Adding doppler effects to the audio player

CS001131 - Adding source location effects to the audio player

CS001132 - Adding listener's location effects to the audio player

CS001134 - Adding stereo widening to the audio player

CS001135 - Adding reverb to the audio player

CS001136 - Adding equalizer to the audio player

Related Discussions

Thread Thread Starter Forum Replies Last Post
javax.microedition.media.Mediaexception:Deviceerror gupta.akhil21 Mobile Java Media (Graphics & Sounds) 4 2008-10-14 18:12
Playing MP3 on Nokia 6230? lancew Mobile Java General 2 2004-09-20 18:49
Audio recording javierclaveria Mobile Java Media (Graphics & Sounds) 4 2007-06-21 13:40
Audio on S60 3rd_FP2? arielbm Audio 1 2008-06-22 20:31
opening file in Drm player leaves with -28 suterma Symbian Media (Graphics & Sounds) 11 2006-08-07 17:00

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditFurlTechnocratiMagnoliaTwitter  Share this page Share this page Invite a friend Invite a friend
E-mail Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us Regional websites: Chinese Japanese © 2008 Nokia 
RDF Facets: qfnZtopicQUqfnTopicZaudioQ qfnZtypeQUqfnTypeZCommunityContentQ qfnZtypeQUqfnTypeZWebpageQ qfnZtypeQUqfnTypeZWikiContentQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX