버전

menu_open
Wwise SDK 2018.1.11

◆ GetSourceStreamBuffering()

AKRESULT __cdecl AK::SoundEngine::GetSourceStreamBuffering ( AkPlayingID  in_PlayingID,
AkTimeMs out_buffering,
bool &  out_bIsBuffering 
)

Gets the stream buffering of the sources associated with this playing ID, obtained from PostEvent(). Notes:

  • You need to pass AK_EnableGetSourceStreamBuffering to PostEvent() in order to use this function, otherwise it returns AK_Fail, even if the playing ID is valid.
  • The sources stream buffering is updated at every audio frame. If there are multiple sources associated with this playing ID, the value returned corresponds to the least buffered source.
  • The returned buffering status out_bIsBuffering will be true If any of the sources associated with the playing ID are actively being buffered. It will be false if all of them have reached the end of file, or have reached a state where they are buffered enough and streaming is temporarily idle.
  • Purely in-memory sources are excluded from this database. If all sources are in-memory, GetSourceStreamBuffering() will return AK_Fail.
  • The returned buffering amount and state is not completely accurate with some hardware-accelerated codecs. In such cases, the amount of stream buffering is generally underestimated. On the other hand, it is not guaranteed that the source will be ready to produce data at the next audio frame even if out_bIsBuffering has turned to false.
    Returns
  • AK_Success if successful.
  • AK_Fail if the source data associated with this playing ID is not found, for example if PostEvent() was not called with AK_EnableGetSourceStreamBuffering, or if the header was not parsed.
    See also
  • Concept: Events
Parameters
in_PlayingID Playing ID returned by AK::SoundEngine::PostEvent()
out_buffering Returned amount of buffering (in ms) of the source (or one of the sources) associated with that playing ID
out_bIsBuffering Returned buffering status of the source(s) associated with that playing ID

이 페이지가 도움이 되었나요?

지원이 필요하신가요?

질문이 있으신가요? 문제를 겪고 계신가요? 더 많은 정보가 필요하신가요? 저희에게 문의해주시면 도와드리겠습니다!

지원 페이지를 방문해 주세요

작업하는 프로젝트에 대해 알려주세요. 언제든지 도와드릴 준비가 되어 있습니다.

프로젝트를 등록하세요. 아무런 조건이나 의무 사항 없이 빠른 시작을 도와드리겠습니다.

Wwise를 시작해 보세요