6 virtual bool get_absolute_time(
double & p_value) = 0;
10 virtual bool get_chunk_absolute(
audio_chunk & p_chunk,
double p_offset,
double p_requested_length) = 0;
16 virtual bool get_spectrum_absolute(
audio_chunk & p_chunk,
double p_offset,
unsigned p_fft_size) = 0;
20 virtual void make_fake_chunk_absolute(
audio_chunk & p_chunk,
double p_offset,
double p_requested_length) = 0;
23 virtual void make_fake_spectrum_absolute(
audio_chunk & p_chunk,
double p_offset,
unsigned p_fft_size) = 0;
31 virtual void request_backlog(
double p_time) = 0;
32 virtual void set_channel_mode(
t_uint32 p_mode) = 0;
35 channel_mode_default = 0,
47 virtual void chunk_to_spectrum(
audio_chunk const & chunk,
audio_chunk & spectrum,
double centerOffset) = 0;
66 KStreamFlagNewFFT = 1 << 0,
71 template<
typename t_streamptr>
73 visualisation_stream::ptr temp; create_stream(temp, flags);
74 if (!temp->service_query_t(out))
throw exception_service_extension_not_found();
This class provides abstraction for retrieving visualisation data. Instances of visualisation_stream ...
Interface to container of a chunk of audio data. See audio_chunk_impl for an implementation.
FB2K_MAKE_SERVICE_INTERFACE(visualisation_stream_v2, visualisation_stream)
Base class for all service classes. Provides interfaces for reference counter and querying for differ...
void create_stream(t_streamptr &out, unsigned flags)
Wrapper around non-template create_stream(); retrieves one of newer visualisation_stream_* interfaces...
Entrypoint service for visualisation processing; use this to create visualisation_stream objects that...
Autopointer class to be used with all services. Manages reference counter calls behind-the-scenes.
FB2K_MAKE_SERVICE_INTERFACE(visualisation_stream, service_base)