HephAudio v3.0.6
A cross-platform C++ library for recording, playing, and processing audio on Windows, Android, Linux, iOS, and macOS.
Loading...
Searching...
No Matches
HephAudio::AudioRenderEventArgs Struct Reference

struct for storing the arguments for the audio render events. More...

#include <AudioRenderEventArgs.h>

Inheritance diagram for HephAudio::AudioRenderEventArgs:
HephAudio::AudioEventArgs Heph::EventArgs

Public Member Functions

 AudioRenderEventArgs (Native::NativeAudio *pNativeAudio, AudioObject *pAudioObject, size_t renderFrameCount)
 
- Public Member Functions inherited from HephAudio::AudioEventArgs
 AudioEventArgs (Native::NativeAudio *pNativeAudio)
 
virtual ~AudioEventArgs ()=default
 
- Public Member Functions inherited from Heph::EventArgs
virtual ~EventArgs ()=default
 

Public Attributes

AudioObjectpAudioObject
 
size_t renderFrameCount
 
- Public Attributes inherited from HephAudio::AudioEventArgs
Native::NativeAudiopNativeAudio
 

Detailed Description

struct for storing the arguments for the audio render events.

Constructor & Destructor Documentation

◆ AudioRenderEventArgs()

HephAudio::AudioRenderEventArgs::AudioRenderEventArgs ( Native::NativeAudio * pNativeAudio,
AudioObject * pAudioObject,
size_t renderFrameCount )

creates a new instance and initializes it with the provided values.

Parameters
pNativeAudiopointer to the native audio instance that raised the event.
pAudioObjectpointer to the audio object instance that's being rendered.
renderFrameCountnumber of audio frames to render.

Member Data Documentation

◆ pAudioObject

AudioObject* HephAudio::AudioRenderEventArgs::pAudioObject

pointer to the audio object instance that's being rendered.

◆ renderFrameCount

size_t HephAudio::AudioRenderEventArgs::renderFrameCount

number of audio frames to render.