foobar2000 SDK  2015-08-03
Public Member Functions
replaygain_managerabstract

#include <replaygain.h>

+ Inheritance diagram for replaygain_manager:

Public Member Functions

virtual HWND configure_embedded (const t_replaygain_config &p_initdata, HWND p_parent, unsigned p_id, bool p_from_modal)=0
 
virtual void configure_embedded_retrieve (HWND wnd, t_replaygain_config &p_data)=0
 
virtual void configure_embedded_set (HWND wnd, t_replaygain_config const &p_data)=0
 
virtual bool configure_popup (t_replaygain_config &p_data, HWND p_parent, const char *p_title)=0
 
audio_sample core_settings_query_scale (const file_info &p_info)
 
audio_sample core_settings_query_scale (const metadb_handle_ptr &info)
 
 FB2K_MAKE_SERVICE_INTERFACE_ENTRYPOINT (replaygain_manager)
 
virtual void get_core_defaults (t_replaygain_config &out)=0
 
virtual void get_core_settings (t_replaygain_config &p_out)=0
 
virtual void set_core_settings (const t_replaygain_config &p_config)=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

Core service providing methods to retrieve/alter playback ReplayGain settings, as well as use ReplayGain configuration dialog.

Definition at line 47 of file replaygain.h.

Member Function Documentation

virtual HWND replaygain_manager::configure_embedded ( const t_replaygain_config p_initdata,
HWND  p_parent,
unsigned  p_id,
bool  p_from_modal 
)
pure virtual

Creates embedded version of ReplayGain settings dialog. Note that embedded dialog sends WM_COMMAND with id/BN_CLICKED to parent window when user makes changes to settings.

virtual void replaygain_manager::configure_embedded_retrieve ( HWND  wnd,
t_replaygain_config p_data 
)
pure virtual

Retrieves settings from embedded version of ReplayGain settings dialog.

virtual void replaygain_manager::configure_embedded_set ( HWND  wnd,
t_replaygain_config const &  p_data 
)
pure virtual

New in 1.0.

virtual bool replaygain_manager::configure_popup ( t_replaygain_config p_data,
HWND  p_parent,
const char *  p_title 
)
pure virtual

Shows popup/modal version of ReplayGain settings dialog. Returns true when user changed the settings, false when user cancelled the operation. Title parameter can be null to use default one.

audio_sample replaygain_manager::core_settings_query_scale ( const file_info p_info)

Helper; queries scale value for specified item according to core playback settings.

Definition at line 66 of file replaygain.cpp.

67 {
69  get_core_settings(temp);
70  return temp.query_scale(p_info);
71 }
virtual void get_core_settings(t_replaygain_config &p_out)=0
Retrieves playback ReplayGain settings.
Structure storing ReplayGain configuration: album/track source data modes, gain/peak processing modes...
Definition: replaygain.h:2
audio_sample query_scale(const file_info &info) const
Definition: replaygain.cpp:11
audio_sample replaygain_manager::core_settings_query_scale ( const metadb_handle_ptr info)

Helper; queries scale value for specified item according to core playback settings.

Definition at line 73 of file replaygain.cpp.

74 {
76  get_core_settings(temp);
77  return temp.query_scale(info);
78 }
virtual void get_core_settings(t_replaygain_config &p_out)=0
Retrieves playback ReplayGain settings.
Structure storing ReplayGain configuration: album/track source data modes, gain/peak processing modes...
Definition: replaygain.h:2
audio_sample query_scale(const file_info &info) const
Definition: replaygain.cpp:11
replaygain_manager::FB2K_MAKE_SERVICE_INTERFACE_ENTRYPOINT ( replaygain_manager  )
virtual void replaygain_manager::get_core_defaults ( t_replaygain_config out)
pure virtual

New in 1.0.

virtual void replaygain_manager::get_core_settings ( t_replaygain_config p_out)
pure virtual

Retrieves playback ReplayGain settings.

virtual void replaygain_manager::set_core_settings ( const t_replaygain_config p_config)
pure virtual

Alters playback ReplayGain settings.


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