22#include <kiwano-audio/Sound.h>
41 using SoundList = List<RefPtr<Sound>>;
88 const SoundList& GetPlayingList()
const;
92 float GetVolume()
const;
97 void SetVolume(
float volume);
104 void OnEnd(
Sound* sound);
106 float OnVolumeChanged(
Sound* sound,
float volume);
108 void SetCallback(
Sound* sound);
110 void RemoveCallback(
Sound* sound);
116 SoundList sound_list_;
120 UnorderedMap<size_t, RefPtr<AudioData>> cache_;
基础对象
Definition: ObjectBase.h:138
引用计数智能指针
Definition: RefBasePtr.hpp:35
资源
Definition: Resource.h:41
音频播放器
Definition: SoundPlayer.h:39
const SoundList & GetPlayingList() const
获取正在播放的音频列表
Definition: SoundPlayer.h:125