Drag[en]gine Game Engine  1.21
deBaseSynthesizerSynthesizerInstance Class Referenceabstract

Synthesizer module synthesizer instance peer. More...

#include <deBaseSynthesizerSynthesizerInstance.h>

Public Member Functions

Constructors and Destructors
 deBaseSynthesizerSynthesizerInstance ()
 Create peer. More...
 
virtual ~deBaseSynthesizerSynthesizerInstance ()
 Clean up peer. More...
 
Notifications
virtual void SynthesizerChanged ()
 Synthesizer changed. More...
 
virtual void ControllerChanged (int index)
 Controller changed. More...
 
virtual void PlayTimeChanged ()
 Play time changed. More...
 
Generate sound
virtual void Reset ()=0
 Reset synthesizer playback. More...
 
virtual void GenerateSound (void *buffer, int bufferSize, int offset, int samples)=0
 Generate sound. More...
 

Detailed Description

Synthesizer module synthesizer instance peer.

Constructor & Destructor Documentation

◆ deBaseSynthesizerSynthesizerInstance()

deBaseSynthesizerSynthesizerInstance::deBaseSynthesizerSynthesizerInstance ( )

Create peer.

◆ ~deBaseSynthesizerSynthesizerInstance()

virtual deBaseSynthesizerSynthesizerInstance::~deBaseSynthesizerSynthesizerInstance ( )
virtual

Clean up peer.

Member Function Documentation

◆ ControllerChanged()

virtual void deBaseSynthesizerSynthesizerInstance::ControllerChanged ( int  index)
virtual

Controller changed.

◆ GenerateSound()

virtual void deBaseSynthesizerSynthesizerInstance::GenerateSound ( void *  buffer,
int  bufferSize,
int  offset,
int  samples 
)
pure virtual

Generate sound.

Warning
Audio module is allowed to call this asynchronously.
Parameters
[out]bufferBuffer to store samples in.
[in]bufferSizeSize of buffer in bytes to store samples in. Has to match format.
[in]offsetOffset in samples to produce sound at.
[in]samplesNumber of samples to produce.
Exceptions
EInvalidParambufferSize does not match format.
EInvalidParambuffer is NULL.
EInvalidParamAssigned synthesizer object changed while in use.

◆ PlayTimeChanged()

virtual void deBaseSynthesizerSynthesizerInstance::PlayTimeChanged ( )
virtual

Play time changed.

◆ Reset()

virtual void deBaseSynthesizerSynthesizerInstance::Reset ( )
pure virtual

Reset synthesizer playback.

Warning
Audio module is allowed to call this asynchronously.

◆ SynthesizerChanged()

virtual void deBaseSynthesizerSynthesizerInstance::SynthesizerChanged ( )
virtual

Synthesizer changed.


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