OpenTTD Source  20240919-master-gdf0233f4c2
StreamingVoiceContext Class Reference

Implementation of the IXAudio2VoiceCallback interface. More...

Inheritance diagram for StreamingVoiceContext:

Public Member Functions

 StreamingVoiceContext (int bufferLength)
 
HRESULT SubmitBuffer ()
 
 STDMETHOD_ (void, OnVoiceProcessingPassStart)(UINT32) override
 
 STDMETHOD_ (void, OnVoiceProcessingPassEnd)() override
 
 STDMETHOD_ (void, OnStreamEnd)() override
 
 STDMETHOD_ (void, OnBufferStart)(void *) override
 
 STDMETHOD_ (void, OnBufferEnd)(void *) override
 
 STDMETHOD_ (void, OnLoopEnd)(void *) override
 
 STDMETHOD_ (void, OnVoiceError)(void *
 

Data Fields

IXAudio2SourceVoice * SourceVoice
 

Private Attributes

int bufferLength
 
char * buffer
 

Detailed Description

Implementation of the IXAudio2VoiceCallback interface.

Provides buffered audio to XAudio2 from the OpenTTD mixer.

Definition at line 47 of file xaudio2_s.cpp.


The documentation for this class was generated from the following file: