docs: update resources API docs
This commit is contained in:
26
docs/api/resources/audioclip/get-bits-per-sample.md
Normal file
26
docs/api/resources/audioclip/get-bits-per-sample.md
Normal file
@@ -0,0 +1,26 @@
|
||||
# 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 总览](audio-clip.md) - 返回类总览
|
||||
- [SetBitsPerSample](set-bits-per-sample.md) - 设置位深度
|
||||
Reference in New Issue
Block a user