foobar2000 SDK  2015-01-14
Public Member Functions
audio_postprocessorabstract

#include <audio_postprocessor.h>

+ Inheritance diagram for audio_postprocessor:

Public Member Functions

 FB2K_MAKE_SERVICE_INTERFACE_ENTRYPOINT (audio_postprocessor)
 
virtual void run (const audio_chunk &p_chunk, mem_block_container &p_output, t_uint32 p_out_bps, t_uint32 p_out_bps_physical, bool p_dither, audio_sample p_prescale)=0
 
- Public Member Functions inherited from service_base
template<typename outPtr_t >
bool cast (outPtr_t &outPtr)
 
virtual int service_add_ref ()=0 throw ()
 
virtual bool service_query (service_ptr_t< service_base > &p_out, const GUID &p_guid)
 
template<class T >
bool service_query_t (service_ptr_t< T > &p_out)
 
virtual int service_release ()=0 throw ()
 

Additional Inherited Members

- Public Types inherited from service_base
typedef service_base t_interface
 
- Protected Member Functions inherited from service_base
 service_base ()
 
 ~service_base ()
 

Detailed Description

This class handles conversion of audio data (audio_chunk) to various linear PCM types, with optional dithering.

Definition at line 3 of file audio_postprocessor.h.

Member Function Documentation

audio_postprocessor::FB2K_MAKE_SERVICE_INTERFACE_ENTRYPOINT ( audio_postprocessor  )
virtual void audio_postprocessor::run ( const audio_chunk p_chunk,
mem_block_container p_output,
t_uint32  p_out_bps,
t_uint32  p_out_bps_physical,
bool  p_dither,
audio_sample  p_prescale 
)
pure virtual

Processes one chunk of audio data.

Parameters
p_chunkChunk of audio data to process.
p_outputReceives output linear signed PCM data.
p_out_bpsDesired bit depth of output.
p_out_bps_physicalDesired physical word width of output. Must be either 8, 16, 24 or 32, greater or equal to p_out_bps. This is typically set to same value as p_out_bps.
p_ditherIndicates whether dithering should be used. Note that dithering is CPU-heavy.
p_prescaleValue to scale all audio samples by when converting. Set to 1.0 to do nothing.

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