00001 /* 00002 * ============================================================================== 00003 * Name : DopplerBase.h 00004 * Part of : Effects Framework 00005 * Description : This is the definition of the doppler effect class. 00006 * 00007 * Version : 1 00008 * 00009 * Copyright © 2004 Nokia Corporation. 00010 * This material, including documentation and any related 00011 * computer programs, is protected by copyright controlled by 00012 * Nokia Corporation. All rights are reserved. Copying, 00013 * including reproducing, storing, adapting or translating, any 00014 * or all of this material requires the prior written consent of 00015 * Nokia Corporation. This material also contains confidential 00016 * information which may not be disclosed to others without the 00017 * prior written consent of Nokia Corporation. 00018 * ============================================================================== 00019 */ 00020 00021 #ifndef CDOPPLER_H 00022 #define CDOPPLER_H 00023 00024 // INCLUDES 00025 00026 #include <e32base.h> 00027 #include <AudioEffectBase.h> 00028 #include <DopplerData.h> 00029 #include <MCustomInterface.h> 00030 00031 // CLASS DECLARATION 00032 00040 class CDoppler : public CAudioEffect 00041 { 00042 00043 protected: // Constructor and Destructors 00044 00049 IMPORT_C virtual ~CDoppler(); 00050 00054 IMPORT_C CDoppler(); 00055 00056 00057 public: // New functions 00058 00066 IMPORT_C void CartesianVelocity( TInt32& aX, TInt32& aY, TInt32& aZ ); 00067 00073 IMPORT_C TUint32 Factor() const; 00074 00080 IMPORT_C TUint32 FactorMax() const; 00081 00090 IMPORT_C void SetCartesianVelocityL( TInt32 aX, TInt32 aY, TInt32 aZ ); 00091 00099 IMPORT_C void SetFactorL( TUint32 aFactor ); 00100 00109 IMPORT_C void SetSphericalVelocityL( TInt32 aAzimuth, TInt32 aElevation, TInt32 aRadius ); 00110 00119 IMPORT_C void SphericalVelocity( TInt32& aAzimuth, TInt32& aElevation, TInt32& aRadius ); 00120 00121 protected: // Functions from base classes 00122 00129 IMPORT_C const TDesC8& DoEffectData(); 00130 00138 IMPORT_C void SetEffectData( const TDesC8& aEffectDataBuffer ); 00139 00140 protected: 00141 00142 // Doppler data structure 00143 TEfDoppler iDopplerData; 00144 // Data package sent to server 00145 TEfDopplerDataPckg iDataPckgTo; 00146 // Data package received from server 00147 TEfDopplerDataPckg iDataPckgFrom; 00148 00149 }; 00150 00151 // of CDOPPLER_H 00152 #endif 00153 00154 // End of File