refactor(docs): fix Audio module documentation links and add missing getter docs
This commit is contained in:
@@ -16,20 +16,20 @@ AudioMixer 是 XCEngine 音频模块中的混音器类,负责将多个音频
|
||||
|
||||
| 方法 | 描述 |
|
||||
|------|------|
|
||||
| `SetVolume` | 设置混音器音量 |
|
||||
| `GetVolume` | 获取混音器音量 |
|
||||
| `SetMute` | 设置静音状态 |
|
||||
| `IsMute` | 检查静音状态 |
|
||||
| `AddEffect` | 添加音频效果 |
|
||||
| `RemoveEffect` | 移除音频效果 |
|
||||
| `ClearEffects` | 清除所有效果 |
|
||||
| `ProcessAudio` | 处理音频数据 |
|
||||
| `SetOutputMixer` | 设置输出混音器 |
|
||||
| `GetOutputMixer` | 获取输出混音器 |
|
||||
| `Set3DParams` | 设置 3D 空间化参数 |
|
||||
| `Get3DParams` | 获取 3D 空间化参数 |
|
||||
| `SetChannelVolume` | 设置通道音量 |
|
||||
| `GetChannelVolume` | 获取通道音量 |
|
||||
| [`SetVolume`](set-volume.md) | 设置混音器音量 |
|
||||
| [`GetVolume`](get-volume.md) | 获取混音器音量 |
|
||||
| [`SetMute`](set-mute.md) | 设置静音状态 |
|
||||
| [`IsMute`](is-mute.md) | 检查静音状态 |
|
||||
| [`AddEffect`](add-effect.md) | 添加音频效果 |
|
||||
| [`RemoveEffect`](remove-effect.md) | 移除音频效果 |
|
||||
| [`ClearEffects`](clear-effects.md) | 清除所有效果 |
|
||||
| [`ProcessAudio`](process-audio.md) | 处理音频数据 |
|
||||
| [`SetOutputMixer`](set-output-mixer.md) | 设置输出混音器 |
|
||||
| [`GetOutputMixer`](get-output-mixer.md) | 获取输出混音器 |
|
||||
| [`Set3DParams`](set-3d-params.md) | 设置 3D 空间化参数 |
|
||||
| [`Get3DParams`](get-3d-params.md) | 获取 3D 空间化参数 |
|
||||
| [`SetChannelVolume`](set-channel-volume.md) | 设置通道音量 |
|
||||
| [`GetChannelVolume`](get-channel-volume.md) | 获取通道音量 |
|
||||
|
||||
## 使用示例
|
||||
|
||||
|
||||
15
docs/api/audio/audio-mixer/get-3d-params.md
Normal file
15
docs/api/audio/audio-mixer/get-3d-params.md
Normal file
@@ -0,0 +1,15 @@
|
||||
# AudioMixer::Get3DParams
|
||||
|
||||
获取 3D 空间化参数。
|
||||
|
||||
```cpp
|
||||
const Audio3DParams& Get3DParams() const;
|
||||
```
|
||||
|
||||
**返回:** `const Audio3DParams&` - 3D 空间化参数结构体引用
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [AudioMixer 总览](audio-mixer.md)
|
||||
- [Set3DParams](set-3d-params.md) - 设置 3D 空间化参数
|
||||
- [Audio3DParams](../audio-3d-params/audio-3d-params.md) - 3D 空间化参数
|
||||
14
docs/api/audio/audio-mixer/get-output-mixer.md
Normal file
14
docs/api/audio/audio-mixer/get-output-mixer.md
Normal file
@@ -0,0 +1,14 @@
|
||||
# AudioMixer::GetOutputMixer
|
||||
|
||||
获取输出混音器。
|
||||
|
||||
```cpp
|
||||
AudioMixer* GetOutputMixer() const;
|
||||
```
|
||||
|
||||
**返回:** `AudioMixer*` - 父混音器指针,如果直接输出到后端则返回 nullptr
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [AudioMixer 总览](audio-mixer.md)
|
||||
- [SetOutputMixer](set-output-mixer.md) - 设置输出混音器
|
||||
14
docs/api/audio/audio-mixer/get-volume.md
Normal file
14
docs/api/audio/audio-mixer/get-volume.md
Normal file
@@ -0,0 +1,14 @@
|
||||
# AudioMixer::GetVolume
|
||||
|
||||
获取混音器音量。
|
||||
|
||||
```cpp
|
||||
float GetVolume() const;
|
||||
```
|
||||
|
||||
**返回:** `float` - 混音器音量值,范围 [0.0, 1.0]
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [AudioMixer 总览](audio-mixer.md)
|
||||
- [SetVolume](set-volume.md) - 设置混音器音量
|
||||
14
docs/api/audio/audio-mixer/is-mute.md
Normal file
14
docs/api/audio/audio-mixer/is-mute.md
Normal file
@@ -0,0 +1,14 @@
|
||||
# AudioMixer::IsMute
|
||||
|
||||
检查混音器静音状态。
|
||||
|
||||
```cpp
|
||||
bool IsMute() const;
|
||||
```
|
||||
|
||||
**返回:** `bool` - 如果当前处于静音状态则返回 true
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [AudioMixer 总览](audio-mixer.md)
|
||||
- [SetMute](set-mute.md) - 设置混音器静音状态
|
||||
Reference in New Issue
Block a user