nomlib
Loading...
Searching...
No Matches
nom::audio::ALSoundSource Class Reference
Inheritance diagram for nom::audio::ALSoundSource:
[legend]

Public Types

typedef ISoundSource super

Public Member Functions

 ALSoundSource (Sound *s)
virtual void reset () override
OALSource * source () override
void set_sound (Sound *s) override
void attach_source (OALSource *s) override
void detach_source () override
virtual void update (nom::real32 delta) override
void set_volume (nom::real32 gain) override
Public Member Functions inherited from nom::audio::ISoundSource
Sound * sound ()
SoundPriority priority ()
nom::uint32 state ()
nom::real32 volume ()
nom::real32 pitch ()
nom::real32 radius ()
bool looping ()
bool global ()
nom::real64 time_left ()
nom::Point3f & position ()
void set_priority (SoundPriority p)
void set_pitch (nom::real32 pitch)
void set_looping (bool state)
void set_radius (nom::real32 value)
void set_global (bool state)
void set_position (const nom::Point3f &pos)
void set_position (nom::real32 x, nom::real32 y, nom::real32 z)

Static Public Member Functions

static bool compare (ISoundSource *lhs, ISoundSource *rhs)

Protected Attributes

OALSource * oalSource_
nom::real64 stream_pos_
nom::uint32 stream_buffers_ [NUM_STREAM_BUFFERS]
nom::real64 stream_buffer_durations_ [NUM_STREAM_BUFFERS]
Protected Attributes inherited from nom::audio::ISoundSource
Sound * sound_
SoundPriority priority_
nom::uint32 state_
nom::real32 volume_
nom::real32 pitch_
nom::real32 radius_
bool looping_
bool global_
nom::real64 time_left_
nom::Point3f position_

Private Member Functions

void update_state (nom::real32 delta) override

Detailed Description

Definition at line 17 of file ALSoundSource.hpp.

Member Typedef Documentation

◆ super

typedef ISoundSource nom::audio::ALSoundSource::super

Definition at line 20 of file ALSoundSource.hpp.

Member Function Documentation

◆ attach_source()

void nom::audio::ALSoundSource::attach_source ( OALSource * s)
overridevirtual

◆ detach_source()

void nom::audio::ALSoundSource::detach_source ( )
overridevirtual

◆ reset()

virtual void nom::audio::ALSoundSource::reset ( )
overridevirtual

Reimplemented from nom::audio::ISoundSource.

◆ set_sound()

void nom::audio::ALSoundSource::set_sound ( Sound * s)
overridevirtual

◆ set_volume()

void nom::audio::ALSoundSource::set_volume ( nom::real32 gain)
overridevirtual

Reimplemented from nom::audio::ISoundSource.

◆ source()

OALSource * nom::audio::ALSoundSource::source ( )
overridevirtual

◆ update()

virtual void nom::audio::ALSoundSource::update ( nom::real32 delta)
overridevirtual

◆ update_state()

void nom::audio::ALSoundSource::update_state ( nom::real32 delta)
overrideprivatevirtual

Member Data Documentation

◆ oalSource_

OALSource* nom::audio::ALSoundSource::oalSource_
protected

Definition at line 44 of file ALSoundSource.hpp.

◆ stream_buffer_durations_

nom::real64 nom::audio::ALSoundSource::stream_buffer_durations_[NUM_STREAM_BUFFERS]
protected

Definition at line 48 of file ALSoundSource.hpp.

◆ stream_buffers_

nom::uint32 nom::audio::ALSoundSource::stream_buffers_[NUM_STREAM_BUFFERS]
protected

Definition at line 47 of file ALSoundSource.hpp.

◆ stream_pos_

nom::real64 nom::audio::ALSoundSource::stream_pos_
protected

Definition at line 46 of file ALSoundSource.hpp.


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