neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neogfx::i_audio_bitstream Class Referenceabstract

#include <i_audio_bitstream.hpp>

Inheritance diagram for neogfx::i_audio_bitstream:
neolib::i_reference_counted neogfx::i_audio_instrument neogfx::i_audio_track neogfx::i_audio_waveform

Public Types

typedef i_audio_bitstream abstract_type
 
typedef void * handle
 

Public Member Functions

virtual ~i_audio_bitstream ()=default
 
virtual audio_sample_rate sample_rate () const =0
 
virtual void set_sample_rate (audio_sample_rate aSampleRate)=0
 
virtual float amplitude () const =0
 
virtual void set_amplitude (float aAmplitude)=0
 
virtual bool has_envelope () const =0
 
virtual adsr_envelope const & envelope () const =0
 
virtual void clear_envelope ()=0
 
virtual void set_envelope (adsr_envelope const &aEnvelope)=0
 
virtual audio_frame_count length () const =0
 
virtual void generate (audio_channel aChannel, audio_frame_count aFrameCount, float *aOutputFrames)=0
 
virtual void generate_from (audio_channel aChannel, audio_frame_index aFrameFrom, audio_frame_count aFrameCount, float *aOutputFrames)=0
 
- Public Member Functions inherited from neolib::i_reference_counted
virtual ~i_reference_counted ()=default
 
virtual void add_ref () const noexcept=0
 
virtual void release () const =0
 
virtual int32_t use_count () const noexcept=0
 
virtual const i_reference_countedrelease_and_take_ownership () const =0
 
virtual i_reference_countedrelease_and_take_ownership ()=0
 
virtual void pin () const noexcept=0
 
virtual void unpin () const =0
 
virtual i_ref_control_blockcontrol_block ()=0
 

Detailed Description

Definition at line 27 of file i_audio_bitstream.hpp.

Member Typedef Documentation

◆ abstract_type

◆ handle

Definition at line 32 of file i_audio_bitstream.hpp.

Constructor & Destructor Documentation

◆ ~i_audio_bitstream()

virtual neogfx::i_audio_bitstream::~i_audio_bitstream ( )
virtualdefault

Member Function Documentation

◆ amplitude()

virtual float neogfx::i_audio_bitstream::amplitude ( ) const
pure virtual

◆ clear_envelope()

virtual void neogfx::i_audio_bitstream::clear_envelope ( )
pure virtual

◆ envelope()

virtual adsr_envelope const & neogfx::i_audio_bitstream::envelope ( ) const
pure virtual

◆ generate()

virtual void neogfx::i_audio_bitstream::generate ( audio_channel  aChannel,
audio_frame_count  aFrameCount,
float *  aOutputFrames 
)
pure virtual

◆ generate_from()

virtual void neogfx::i_audio_bitstream::generate_from ( audio_channel  aChannel,
audio_frame_index  aFrameFrom,
audio_frame_count  aFrameCount,
float *  aOutputFrames 
)
pure virtual

◆ has_envelope()

virtual bool neogfx::i_audio_bitstream::has_envelope ( ) const
pure virtual

◆ length()

virtual audio_frame_count neogfx::i_audio_bitstream::length ( ) const
pure virtual

◆ sample_rate()

virtual audio_sample_rate neogfx::i_audio_bitstream::sample_rate ( ) const
pure virtual

◆ set_amplitude()

virtual void neogfx::i_audio_bitstream::set_amplitude ( float  aAmplitude)
pure virtual

◆ set_envelope()

virtual void neogfx::i_audio_bitstream::set_envelope ( adsr_envelope const &  aEnvelope)
pure virtual

◆ set_sample_rate()

virtual void neogfx::i_audio_bitstream::set_sample_rate ( audio_sample_rate  aSampleRate)
pure virtual

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