Definition at line 6 of file dsp.cpp.
Definition at line 9 of file dsp.cpp.
static void parse_preset(float &gain, const dsp_preset &in)
void dsp_sample::flush |
( |
| ) |
|
|
inlinevirtual |
To be overridden by a DSP implementation.
Flushes the DSP (drops any buffered data). The implementation should reset the DSP to the same state it was in before receiving any audio data.
Called after seeking, etc.
Implements dsp_impl_base_t< t_baseclass >.
Definition at line 46 of file dsp.cpp.
static bool dsp_sample::g_get_default_preset |
( |
dsp_preset & |
p_out | ) |
|
|
inlinestatic |
Definition at line 61 of file dsp.cpp.
static void make_preset(float gain, dsp_preset &out)
static GUID dsp_sample::g_get_guid |
( |
| ) |
|
|
inlinestatic |
Definition at line 13 of file dsp.cpp.
15 static const GUID guid = { 0x890827b, 0x67df, 0x4c27, { 0xba, 0x1a, 0x4f, 0x95, 0x8d, 0xf, 0xb5, 0xd0 } };
Definition at line 19 of file dsp.cpp.
19 { p_out =
"Sample DSP";}
static bool dsp_sample::g_have_config_popup |
( |
| ) |
|
|
inlinestatic |
Definition at line 65 of file dsp.cpp.
static void RunDSPConfigPopup(const dsp_preset &p_data, HWND p_parent, dsp_preset_edit_callback &p_callback)
double dsp_sample::get_latency |
( |
| ) |
|
|
inlinevirtual |
To be overridden by a DSP implementation.
Retrieves amount of data buffered by the DSP, for syncing visualisation.
- Returns
- Amount of buffered audio data, in seconds.
Implements dsp_impl_base_t< t_baseclass >.
Definition at line 51 of file dsp.cpp.
static void dsp_sample::make_preset |
( |
float |
gain, |
|
|
dsp_preset & |
out |
|
) |
| |
|
inlinestatic |
Definition at line 69 of file dsp.cpp.
void finish(const GUID &id, dsp_preset &out)
bool dsp_sample::need_track_change_mark |
( |
| ) |
|
|
inlinevirtual |
To be overridden by a DSP implementation.
Returns true if DSP needs to know exact track change point (eg. for crossfading, removing silence).
Signaling this will force-flush any DSPs placed before this DSP so when it gets on_endoftrack(), relevant chunks contain last samples of the track.
Signaling this may interfere with gapless playback in certain scenarios (forces flush of DSPs placed before you) so don't use it unless you have reasons to.
Implements dsp_impl_base_t< t_baseclass >.
Definition at line 56 of file dsp.cpp.
To be overridden by a DSP implementation.
Processes a chunk of audio data.
You can call insert_chunk() from inside on_chunk() to insert any audio data before currently processed chunk.
.
- Parameters
-
p_chunk | Current chunk being processed. You can alter it in any way you like. |
- Returns
- True to keep p_chunk (with alterations made inside on_chunk()) in the stream, false to remove it.
Implements dsp_impl_base_t< t_baseclass >.
Definition at line 21 of file dsp.cpp.
27 chunk->scale( audio_math::gain_to_scale(
m_gain ) );
To be overridden by a DSP implementation.
Called at the end of played stream, typically at the end of last played track, to allow the DSP to return all data it has buffered-ahead.
Use insert_chunk() to return any data you have buffered.
Note that this call does not imply that the DSP will be destroyed next.
This is also called on track changes if some DSP placed after your DSP requests track change marks.
Implements dsp_impl_base_t< t_baseclass >.
Definition at line 36 of file dsp.cpp.
static void dsp_sample::parse_preset |
( |
float & |
gain, |
|
|
const dsp_preset & |
in |
|
) |
| |
|
inlinestatic |
Definition at line 72 of file dsp.cpp.
75 }
catch(exception_io_data) {gain = 0;}
The documentation for this class was generated from the following file: