Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
Sets the type of the spatial audio object represented by the buffer.
Syntax
HRESULT SetType(
AudioObjectType type
);
Parameters
type
A value from the AudioObjectType enumeration specifying the type of audio object.
Return value
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
A spatial audio object can be of type AudioObjectType_Dynamic, which means that it can change position and orientation in 3D space over time, or it can have a value such as AudioObjectType_FrontLeft which represents the static position of a real or virtual speaker that does not change position over time.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows 10, version 1703 [desktop apps only] |
| Minimum supported server | None supported |
| Target Platform | Windows |
| Header | mfspatialaudio.h (include Mfobjects.h) |
| Library | Mfobjects.lib |