fix(docs): fix remaining AudioClip setter broken references
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
# SetOutputMixer
|
||||
|
||||
**所属类**: `AudioSourceComponent`
|
||||
|
||||
**头文件**: `XCEngine/Components/AudioSourceComponent.h`
|
||||
|
||||
**描述**: 设置音频源的输出混音器。
|
||||
|
||||
## 函数签名
|
||||
|
||||
```cpp
|
||||
void SetOutputMixer(Audio::AudioMixer* mixer);
|
||||
```
|
||||
|
||||
## 参数
|
||||
|
||||
| 参数 | 类型 | 描述 |
|
||||
|------|------|------|
|
||||
| `mixer` | `Audio::AudioMixer*` | 混音器指针,设置为 nullptr 使用默认输出 |
|
||||
|
||||
## 使用示例
|
||||
|
||||
```cpp
|
||||
#include <XCEngine/Components/AudioSourceComponent.h>
|
||||
#include <XCEngine/Audio/AudioMixer.h>
|
||||
|
||||
using namespace XCEngine::Components;
|
||||
using namespace XCEngine::Audio;
|
||||
|
||||
void ConnectToMixer(AudioSourceComponent* source, AudioMixer* mixer) {
|
||||
source->SetOutputMixer(mixer);
|
||||
}
|
||||
```
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [AudioSourceComponent](./audio-source-component.md) - 音频源组件
|
||||
- [GetOutputMixer](./get-output-mixer.md) - 获取输出混音器
|
||||
Reference in New Issue
Block a user