fix: improve doc link navigation and tree display
- Fix link resolution with proper relative/absolute path handling - Improve link styling with underline decoration - Hide leaf nodes from tree, only show directories - Fix log file path for packaged app
This commit is contained in:
29
docs/api/resources/audioclip/setaudiodata.md
Normal file
29
docs/api/resources/audioclip/setaudiodata.md
Normal file
@@ -0,0 +1,29 @@
|
||||
# AudioClip::SetAudioData
|
||||
|
||||
```cpp
|
||||
void SetAudioData(const Containers::Array<Core::uint8>& data)
|
||||
```
|
||||
|
||||
设置音频原始样本数据。
|
||||
|
||||
**参数:**
|
||||
- `data` - 音频数据字节数组
|
||||
|
||||
**返回:** 无
|
||||
|
||||
**复杂度:** O(n)
|
||||
|
||||
**示例:**
|
||||
|
||||
```cpp
|
||||
auto wavData = ResourceFileSystem::Get().ReadResource("sounds/explosion.wav");
|
||||
AudioClip* clip = new AudioClip();
|
||||
clip->SetAudioData(wavData);
|
||||
clip->SetSampleRate(44100);
|
||||
clip->SetChannels(2);
|
||||
clip->SetBitsPerSample(16);
|
||||
```
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [AudioClip 总览](audioclip.md) - 返回类总览
|
||||
Reference in New Issue
Block a user