21 class ExternalSoundPlayer
26 ExternalSoundPlayer();
27 ~ExternalSoundPlayer();
28 int GetPlayingSoundCount()
const {
return mSoundList.GetSize(); }
29 int GetPlayableSoundCount()
const {
return mPlayableCount; }
30 void SetPlayableSoundCount(
int count);
31 void StopAllSound(
int fadeFrames);
32 void PauseAllSound(
bool flag,
int fadeFrames);
38 bool detail_CanPlaySound(
int startPriority);
40 template <
typename TForEachFunc>
41 TForEachFunc ForEachSound(TForEachFunc pFunc,
bool reverse) {
43 detail::BasicSound::ExtSoundPlayerPlayLinkList::ReverseIterator it = mSoundList.GetBeginReverseIter();
45 while (it != mSoundList.GetEndReverseIter()) {
46 detail::BasicSound::ExtSoundPlayerPlayLinkList::ReverseIterator curr = it;
49 handle.detail_AttachSoundAsTempHandle(&*curr);
52 if (handle.IsAttachedSound()) {
57 NW4R_RANGE_FOR_NO_AUTO_INC(it, mSoundList) {
58 decltype(it) curItr = it++;
60 handle.detail_AttachSoundAsTempHandle(&*curItr);
73 BasicSound::ExtSoundPlayerPlayLinkList mSoundList;