docs: 添加 Audio 模块和 Components 模块 API 文档
- 新增 Audio 模块文档 (54 个文件) - AudioSystem 单例类及 20 个方法页 - AudioMixer 混音器类及 11 个方法页 - IAudioBackend、IAudioEffect 接口 - FFTFilter、Reverbation、Equalizer、HRTF 效果类 - WASAPIBackend Windows 后端 - AudioConfig、Audio3DParams 等结构体 - 9 个枚举类型文档 - 新增 Components 模块文档 (3 个文件) - AudioSourceComponent 音频源组件 - AudioListenerComponent 音频监听器组件 - 更新 docs/api/main.md 添加模块导航
This commit is contained in:
18
docs/api/audio/audio-system/process-audio.md
Normal file
18
docs/api/audio/audio-system/process-audio.md
Normal file
@@ -0,0 +1,18 @@
|
||||
# AudioSystem::ProcessAudio
|
||||
|
||||
处理音频数据。
|
||||
|
||||
```cpp
|
||||
void ProcessAudio(float* buffer, uint32 sampleCount, uint32 channels);
|
||||
```
|
||||
|
||||
将所有注册的音频源混音到输出缓冲区。内部处理 3D 空间化、音量控制和效果链。
|
||||
|
||||
**参数:**
|
||||
- `buffer` - 输出音频缓冲区指针
|
||||
- `sampleCount` - 样本数量
|
||||
- `channels` - 通道数
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [AudioSystem 总览](audio-system.md)
|
||||
Reference in New Issue
Block a user