foobar2000 SDK
2015-08-03
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
foobar2000
SDK
replaygain_scanner.h
Go to the documentation of this file.
1
class
replaygain_result
:
public
service_base
{
3
FB2K_MAKE_SERVICE_INTERFACE
(
replaygain_result
,
service_base
);
4
public
:
6
virtual
float
get_gain
() = 0;
8
virtual
float
get_peak
() = 0;
11
virtual
replaygain_result::ptr
merge
(replaygain_result::ptr other) = 0;
12
13
replaygain_info
make_track_info
() {
14
replaygain_info
ret =
replaygain_info_invalid
; ret.
m_track_gain
= this->
get_gain
(); ret.
m_track_peak
= this->
get_peak
();
return
ret;
15
}
16
};
17
21
class
replaygain_scanner
:
public
service_base
{
22
FB2K_MAKE_SERVICE_INTERFACE
(
replaygain_scanner
,
service_base
);
23
public
:
26
virtual
void
process_chunk(
const
audio_chunk
& chunk) = 0;
29
virtual
replaygain_result::ptr finalize() = 0;
30
};
31
32
36
class
replaygain_scanner_entry
:
public
service_base
{
37
FB2K_MAKE_SERVICE_INTERFACE_ENTRYPOINT(
replaygain_scanner_entry
);
38
public
:
40
virtual
replaygain_scanner::ptr instantiate() = 0;
41
};
replaygain_result::get_peak
virtual float get_peak()=0
Retrieves the peak value, normalized to 0..1 range (audio_sample value).
replaygain_info::m_track_gain
float m_track_gain
Definition:
file_info.h:4
audio_chunk
Interface to container of a chunk of audio data. See audio_chunk_impl for an implementation.
Definition:
audio_chunk.h:5
replaygain_result::get_gain
virtual float get_gain()=0
Retrieves the gain value, in dB.
replaygain_scanner
Instance of a ReplayGain scanner. Use static_api_ptr_t<replaygain_scanner_entry>()->instantiate() to...
Definition:
replaygain_scanner.h:21
replaygain_info_invalid
static const replaygain_info replaygain_info_invalid
Definition:
file_info.h:69
replaygain_info
Structure containing ReplayGain scan results from some playable object, also providing various helper...
Definition:
file_info.h:2
replaygain_result::merge
virtual replaygain_result::ptr merge(replaygain_result::ptr other)=0
Merges ReplayGain scan results from different tracks. Merge results from all tracks in an album to ge...
replaygain_scanner_entry
Entrypoint class for instantiating replaygain_scanner objects. Use static_api_ptr_t<replaygain_scanne...
Definition:
replaygain_scanner.h:36
service_base
Base class for all service classes. Provides interfaces for reference counter and querying for differ...
Definition:
service.h:333
replaygain_result::FB2K_MAKE_SERVICE_INTERFACE
FB2K_MAKE_SERVICE_INTERFACE(replaygain_result, service_base)
replaygain_result::make_track_info
replaygain_info make_track_info()
Definition:
replaygain_scanner.h:13
replaygain_result
Container of ReplayGain scan results from one or more tracks.
Definition:
replaygain_scanner.h:2
replaygain_info::m_track_peak
float m_track_peak
Definition:
file_info.h:5
Generated by
1.8.11