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 |
25 const TUid KLafSoundPlayerUid={0x10005F1A}; |
26 const TUid KLafSoundPlayerUid={0x10005F1A}; |
26 |
27 |
27 class CCoeSoundPlayer; |
28 class CCoeSoundPlayer; |
28 |
29 |
29 // |
30 // |
422 |
423 |
423 void CCoeSoundPlayerManager::ConstructL() |
424 void CCoeSoundPlayerManager::ConstructL() |
424 { |
425 { |
425 iMdaServer=CMdaServer::NewL(); |
426 iMdaServer=CMdaServer::NewL(); |
426 } |
427 } |
427 |
428 #endif |
428 // |
429 // |
429 // class CoeSoundPlayer |
430 // class CoeSoundPlayer |
430 // |
431 // |
431 |
432 |
432 EXPORT_C void CoeSoundPlayer::PlaySound(const TBaSystemSoundType& aType,TInt aPlayCount, |
433 EXPORT_C void CoeSoundPlayer::PlaySound(const TBaSystemSoundType& aType,TInt aPlayCount, |
433 TTimeIntervalMicroSeconds32 aGap,TBool aInterrupt) |
434 TTimeIntervalMicroSeconds32 aGap,TBool aInterrupt) |
434 { // static |
435 { // static |
435 TRAP_IGNORE(ManagerL()->PlaySoundL(aType,aPlayCount,aGap,aInterrupt)); |
436 //TRAP_IGNORE(ManagerL()->PlaySoundL(aType,aPlayCount,aGap,aInterrupt)); |
436 } |
437 } |
437 |
438 |
438 EXPORT_C void CoeSoundPlayer::CancelSound(const TBaSystemSoundType& aType) |
439 EXPORT_C void CoeSoundPlayer::CancelSound(const TBaSystemSoundType& aType) |
439 /** Stops playing the specified sound. |
440 /** Stops playing the specified sound. |
440 |
441 |
441 @param aType The sound to stop playing. */ |
442 @param aType The sound to stop playing. */ |
442 { // static |
443 { // static |
443 TRAP_IGNORE(ManagerL()->CancelSound(aType)); |
444 //TRAP_IGNORE(ManagerL()->CancelSound(aType)); |
444 } |
445 } |
445 |
446 |
446 CCoeSoundPlayerManager* CoeSoundPlayer::ManagerL() |
447 CCoeSoundPlayerManager* CoeSoundPlayer::ManagerL() |
447 { // static |
448 { // static |
|
449 #if 0 |
448 CCoeEnv* env=CCoeEnv::Static(); |
450 CCoeEnv* env=CCoeEnv::Static(); |
449 __ASSERT_ALWAYS(env,Panic(ECoePanicNullEnvironment)); |
451 __ASSERT_ALWAYS(env,Panic(ECoePanicNullEnvironment)); |
450 CCoeSoundPlayerManager* manager= |
452 CCoeSoundPlayerManager* manager= |
451 STATIC_CAST(CCoeSoundPlayerManager*,env->FindStatic(KLafSoundPlayerUid)); |
453 STATIC_CAST(CCoeSoundPlayerManager*,env->FindStatic(KLafSoundPlayerUid)); |
452 if (!manager) |
454 if (!manager) |
453 manager=CCoeSoundPlayerManager::NewL(); |
455 manager=CCoeSoundPlayerManager::NewL(); |
454 return manager; |
456 return manager; |
455 } |
457 #endif |
|
458 return NULL; |
|
459 } |