22 #ifndef SOUNDPLAYERPOOL_H
23 #define SOUNDPLAYERPOOL_H
29 #include <lunaservice.h>
34 #if !defined(HAS_MEDIA_API)
46 sptr<SoundPlayer>
play(
const std::string& filePath,
47 const std::string& streamClass,
48 bool repeat,
int duration);
49 void stop(sptr<SoundPlayer> player);
51 void playFeedback(
const std::string& name,
const std::string& sinkName=std::string());
58 void queueFinishedPlayer(sptr<SoundPlayer> player);
59 bool purgeTimerFired();
60 sptr<SoundPlayer> getPooledPlayer();
64 typedef std::list<sptr<SoundPlayer> > PlayerList;
66 PlayerList m_activePlayers;
67 PlayerList m_finishedPlayers;
69 Timer<SoundPlayerPool> m_purgeTimer;