CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::AudioListenerComponent Struct Referencefinal

A component that represents a listener that hears audio sources. More...

#include <CeresEngine/Audio/AudioListener.hpp>

Inheritance diagram for CeresEngine::AudioListenerComponent:
CeresEngine::Component< AudioListenerComponent > CeresEngine::AbstractComponent

Classes

struct  Accessor
 

Public Attributes

double volume = 1.0
 The listening volume.
 

Additional Inherited Members

- Public Member Functions inherited from CeresEngine::Component< AudioListenerComponent >
const ComponentTypegetComponentType () const noexcept final
 Gets the component type.
 
- Public Member Functions inherited from CeresEngine::AbstractComponent
virtual CE_DISABLE_WARNING_MISSING_OVERRIDE ::CeresEngine::ClassInfo getClassInfo () noexcept
 
virtual ::CeresEngine::ClassInfo getClassInfo () const noexcept
 
virtual ~AbstractComponent ()=default
 Defaulted virtual destructor.
 
- Static Public Attributes inherited from CeresEngine::Component< AudioListenerComponent >
static const ComponentID componentID
 This component type ID.
 
static const ComponentMask mask
 The component mask.
 
static const ComponentTypecomponentType
 Gets the component type.
 

Detailed Description

A component that represents a listener that hears audio sources.

For spatial audio the volume and pitch of played audio is determined by the distance, orientation and velocity differences between the source and the listener.

Member Data Documentation

◆ volume

double CeresEngine::AudioListenerComponent::volume = 1.0

The listening volume.


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