foobar2000 SDK  2015-01-14
Public Member Functions | Private Member Functions
replaygain_resultabstract

#include <replaygain_scanner.h>

+ Inheritance diagram for replaygain_result:

Public Member Functions

virtual float get_gain ()=0
 
virtual float get_peak ()=0
 
replaygain_info make_track_info ()
 
virtual replaygain_result::ptr merge (replaygain_result::ptr other)=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 ()
 

Private Member Functions

 FB2K_MAKE_SERVICE_INTERFACE (replaygain_result, service_base)
 

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

Container of ReplayGain scan results from one or more tracks.

Definition at line 2 of file replaygain_scanner.h.

Member Function Documentation

replaygain_result::FB2K_MAKE_SERVICE_INTERFACE ( replaygain_result  ,
service_base   
)
private
virtual float replaygain_result::get_gain ( )
pure virtual

Retrieves the gain value, in dB.

virtual float replaygain_result::get_peak ( )
pure virtual

Retrieves the peak value, normalized to 0..1 range (audio_sample value).

replaygain_info replaygain_result::make_track_info ( )
inline

Definition at line 13 of file replaygain_scanner.h.

13  {
14  replaygain_info ret = replaygain_info_invalid; ret.m_track_gain = this->get_gain(); ret.m_track_peak = this->get_peak(); return ret;
15  }
virtual float get_peak()=0
Retrieves the peak value, normalized to 0..1 range (audio_sample value).
float m_track_gain
Definition: file_info.h:4
virtual float get_gain()=0
Retrieves the gain value, in dB.
static const replaygain_info replaygain_info_invalid
Definition: file_info.h:69
Structure containing ReplayGain scan results from some playable object, also providing various helper...
Definition: file_info.h:2
float m_track_peak
Definition: file_info.h:5
virtual replaygain_result::ptr replaygain_result::merge ( replaygain_result::ptr  other)
pure virtual

Merges ReplayGain scan results from different tracks. Merge results from all tracks in an album to get album gain/peak values.
This function returns a newly created replaygain_result object. Existing replaygain_result objects remain unaltered.


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