34 virtual ~SoundActor();
36 virtual ulong detail_ConvertLabelStringToSoundId(
const char* label)
override;
37 virtual StartResult detail_SetupSound(
SoundHandle *pHandle, ulong soundId,
bool holdFlag,
const StartInfo *pStartInfo)
override;
40 virtual StartResult SetupSound(
SoundHandle *pHandle, ulong soundId,
const StartInfo *pStartInfo,
void*);
47 if (actorPlayerId < 0 || ACTOR_PLAYER_COUNT <= actorPlayerId)
50 return &mActorPlayer[actorPlayerId];
54 template <
typename TForEachFunc>
55 TForEachFunc ForEachSound(TForEachFunc pFunc,
bool reverse) {
56 for (
int i = 0; i < ACTOR_PLAYER_COUNT; i++) {
57 mActorPlayer[i].ForEachSound(pFunc, reverse);
68 void StopAllSound(
int fadeFrames);
69 void PauseAllSound(
bool flag,
int fadeFrames);
70 int GetPlayingSoundCount(
int playerId)
const;
74 static int const ACTOR_PLAYER_COUNT = 4;