|
dl
|
音频主控 更多...
#include <dl_audio.h>
Public 成员函数 | |
| Audio (bool open) | |
| void | Init (std::string_view path_name) |
| 初始化配置 | |
| bool | IsOpen () |
| 是否使用 | |
| void | SetPath (std::string_view path) |
| 设置资源路径(不设置则不会加载) | |
| void | SetWhitelist (const std::vector< std::string > &vec_load) |
| 设置加载白名单 | |
| void | Load (std::string_view name, std::string_view path_name) |
| 加载一个音效 | |
| std::vector< std::string > | GetAllSound () |
| 返回所有加载的音效名 | |
| gcSound | Create (std::string_view name) |
| 创建一个声音 | |
| gcSound | CreateDefault () |
| void | _load () |
| 由system调用 | |
| void | _delete_sound (Sound *snd) |
| ~Audio () | |
友元 | |
| class | System |
音频主控
在文件 dl_audio.h 第 79 行定义.
| dl::Audio::Audio | ( | bool | open | ) |
| dl::Audio::~Audio | ( | ) |
| void dl::Audio::_delete_sound | ( | Sound * | snd | ) |
| void dl::Audio::_load | ( | ) |
由system调用
| gcSound dl::Audio::Create | ( | std::string_view | name | ) |
创建一个声音
| [in] | name | 资源名 |
|
inline |
在文件 dl_audio.h 第 131 行定义.
| std::vector< std::string > dl::Audio::GetAllSound | ( | ) |
返回所有加载的音效名
| void dl::Audio::Init | ( | std::string_view | path_name | ) |
初始化配置
| [in] | path_name | json文件路径 |
|
inline |
| void dl::Audio::Load | ( | std::string_view | name, |
| std::string_view | path_name ) |
加载一个音效
| [in] | path_name | 路径 |
| [in] | name | 动命名 |
|
inline |
|
inline |
|
friend |
在文件 dl_audio.h 第 81 行定义.