How devSound load hwDevice

Login to reply to this topic.
Fri, 2007-05-04 05:52
Joined: 2007-04-30
Forum posts: 9
Hi all,

Can anyone give some idea about DevSound as how DevSound (i.e sound device) communicate with HwDevice.

In CMMFDevSound there is an API InitializeL() which will take hwDevice id as a parameter.

IMPORT_C void InitializeL(MDevSoundObserver &aDevSoundObserver, TUid aHWDev, TMMFState aMode);

once hwDevice is loaded how devSound will know which api is to called. Is there any listener class which will listen for hwDevice and inform DevSound or something like that.

Pls if anybody could help me with some sample code which shows interaction between hwDevice and DevSound.

Sun, 2008-02-10 23:29
Joined: 2007-06-07
Forum posts: 5
Re: How devSound load hwDevice

Before Symbian 8.1 CMMFDevsound implemented the MMMFHwDeviceObserver interface to be able to comunicate

http://www.symbian.com/developer/techlib/v70sdocs/doc_source/reference/cpp/SoundDevice/CMMFDevSoundClass.html

If you look inside your SDK at \epoc32\include\mmf\server\mmfhwdevice.h it will find useful information about this class.
There you will find the details about this observer class interface, also, you will get an idea about how a specific CMMFHwDevice is loaded: through ECOM. Finally, it's interesting that the hwDevice id parameter passed to DevSound maybe is used at the ECOM resolving process. See mmfhwdevice.inl.

But since version 81, the DevSound no longer implements the interface observer for HwDevice
You can find more information at this post http://newlc.com/topic-18328

  • Login to reply to this topic.