breakdeps/coesndpy.cpp
changeset 54 dcd1a22c2899
parent 42 29cf161020cf
child 55 f1c1302a0b48
equal deleted inserted replaced
53:884af2e877bf 54:dcd1a22c2899
    11 // Contributors:
    11 // Contributors:
    12 //
    12 //
    13 // Description:
    13 // Description:
    14 //
    14 //
    15 
    15 
    16 //#include <mda/client/utility.h>
    16 #include <mda/client/utility.h>
    17 //#include <mdaaudiosampleplayer.h>
    17 #include <mdaaudiosampleplayer.h>
    18 //#include <mdaaudiotoneplayer.h>
    18 #include <mdaaudiotoneplayer.h>
    19 #include <bassnd.h>
    19 #include <bassnd.h>
    20 #include <coesndpy.h>
    20 #include <coesndpy.h>
    21 #include <coemain.h>
    21 #include <coemain.h>
    22 #include "coepanic.h"
    22 #include "coepanic.h"
    23 #include <coeutils.h>
    23 #include <coeutils.h>
    24 
    24 
    25 #if 0
       
    26 const TUid KLafSoundPlayerUid={0x10005F1A};
    25 const TUid KLafSoundPlayerUid={0x10005F1A};
    27 
    26 
    28 class CCoeSoundPlayer;
    27 class CCoeSoundPlayer;
    29 
    28 
    30 //
    29 //
   423 
   422 
   424 void CCoeSoundPlayerManager::ConstructL()
   423 void CCoeSoundPlayerManager::ConstructL()
   425 	{
   424 	{
   426 	iMdaServer=CMdaServer::NewL();
   425 	iMdaServer=CMdaServer::NewL();
   427 	}
   426 	}
   428 #endif
   427 
   429 //
   428 //
   430 // class CoeSoundPlayer
   429 // class CoeSoundPlayer
   431 //
   430 //
   432 
   431 
   433 EXPORT_C void CoeSoundPlayer::PlaySound(const TBaSystemSoundType& aType,TInt aPlayCount,
   432 EXPORT_C void CoeSoundPlayer::PlaySound(const TBaSystemSoundType& aType,TInt aPlayCount,
   434 											TTimeIntervalMicroSeconds32 aGap,TBool aInterrupt)
   433 											TTimeIntervalMicroSeconds32 aGap,TBool aInterrupt)
   435 	{ // static
   434 	{ // static
   436 	//TRAP_IGNORE(ManagerL()->PlaySoundL(aType,aPlayCount,aGap,aInterrupt));
   435 	TRAP_IGNORE(ManagerL()->PlaySoundL(aType,aPlayCount,aGap,aInterrupt));
   437 	}
   436 	}
   438 
   437 
   439 EXPORT_C void CoeSoundPlayer::CancelSound(const TBaSystemSoundType& aType)
   438 EXPORT_C void CoeSoundPlayer::CancelSound(const TBaSystemSoundType& aType)
   440 /** Stops playing the specified sound.
   439 /** Stops playing the specified sound.
   441 
   440 
   442 @param aType The sound to stop playing. */
   441 @param aType The sound to stop playing. */
   443 	{ // static
   442 	{ // static
   444 	//TRAP_IGNORE(ManagerL()->CancelSound(aType));
   443 	TRAP_IGNORE(ManagerL()->CancelSound(aType));
   445 	}
   444 	}
   446 
   445 
   447 CCoeSoundPlayerManager* CoeSoundPlayer::ManagerL()
   446 CCoeSoundPlayerManager* CoeSoundPlayer::ManagerL()
   448 	{ // static
   447 	{ // static
   449 #if 0	
       
   450 	CCoeEnv* env=CCoeEnv::Static();
   448 	CCoeEnv* env=CCoeEnv::Static();
   451 	__ASSERT_ALWAYS(env,Panic(ECoePanicNullEnvironment));
   449 	__ASSERT_ALWAYS(env,Panic(ECoePanicNullEnvironment));
   452 	CCoeSoundPlayerManager* manager=
   450 	CCoeSoundPlayerManager* manager=
   453 		STATIC_CAST(CCoeSoundPlayerManager*,env->FindStatic(KLafSoundPlayerUid));
   451 		STATIC_CAST(CCoeSoundPlayerManager*,env->FindStatic(KLafSoundPlayerUid));
   454 	if (!manager)
   452 	if (!manager)
   455 		manager=CCoeSoundPlayerManager::NewL();
   453 		manager=CCoeSoundPlayerManager::NewL();
   456 	return manager;
   454 	return manager;
   457 #endif
   455 	}
   458 	return NULL;
       
   459 	}