Files
XCEngine/docs/api/resources/audioclip/get-bits-per-sample.md
ssdfasd 582ab2c730 docs: 更新多个模块文档
- resources: 更新 audioclip 和 resourcepath 文档
- rhi: 更新 d3d12 和 opengl 文档
2026-03-26 02:02:42 +08:00

27 lines
464 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# AudioClip::GetBitsPerSample
```cpp
Core::uint32 GetBitsPerSample() const
```
获取音频的位深度。
**返回:** 位深度8、16、24、32
**线程安全:**
**示例:**
```cpp
using namespace XCEngine::Resources;
AudioClip clip;
clip.SetBitsPerSample(16);
uint32_t bits = clip.GetBitsPerSample();
```
## 相关文档
- [AudioClip 总览](audioclip.md) - 返回类总览
- [SetBitsPerSample](set-bits-per-sample.md) - 设置位深度