载入中...
搜索中...
未找到
UnderwaterAudio.cpp
浏览该文件的文档.
static Diagnostic error(DiagnosticCode code, std::string message, std::string path={}, DiagnosticDetails details={}, std::string source={})
Construct an error diagnostic with the standard error severity.
Definition Diagnostic.h:125
static Result failure(Status status)
Construct a failed result from a structured status.
Definition Result.h:175
A playable audio source (static buffer or streaming decoder). Not thread-safe for playback control ex...
Definition Source.h:30
Definition Audio.cpp:23
Result< void > applyUnderwaterAudio(Source *submergeDown, Source *submergeUp, Source *ambience, bool playDown, bool playUp, bool loopAmbience, float volume)
Apply one Pcg underwater audio transition to caller-owned sources.
Definition UnderwaterAudio.cpp:9
@ InvalidArgument