foobar2000 SDK
2015-08-03
|
#include <vis.h>
Public Types | |
enum | { KStreamFlagNewFFT = 1 << 0 } |
Public Types inherited from service_base | |
typedef service_base | t_interface |
Public Member Functions | |
virtual void | create_stream (service_ptr_t< visualisation_stream > &p_out, unsigned p_flags)=0 |
template<typename t_streamptr > | |
void | create_stream (t_streamptr &out, unsigned flags) |
FB2K_MAKE_SERVICE_INTERFACE_ENTRYPOINT (visualisation_manager) | |
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 | |
Protected Member Functions inherited from service_base | |
service_base () | |
~service_base () | |
Entrypoint service for visualisation processing; use this to create visualisation_stream objects that can be used to retrieve properties of currently played audio.
Implemented by core; do not reimplement.
Use static_api_ptr_t to access it, e.g. static_api_ptr_t<visualisation_manager>()->create_stream(mystream,0);.
anonymous enum |
Definition at line 63 of file vis.h.
|
pure virtual |
Creates a visualisation_stream object. See visualisation_stream for more info.
p_out | Receives newly created visualisation_stream instance. |
p_flags | Combination of one or more KStreamFlag* values. Currently only KStreamFlagNewFFT is defined. It's recommended that you set p_flags to KStreamFlagNewFFT to get the new FFT behavior (better quality and result normalization), the old behavior for null flags is preserved for compatibility with old components that rely on it. |
|
inline |
Wrapper around non-template create_stream(); retrieves one of newer visualisation_stream_* interfaces rather than base visualisation_stream interface. Throws exception_service_extension_not_found() when running too old foobar2000 version for the requested interface.
Definition at line 72 of file vis.h.
visualisation_manager::FB2K_MAKE_SERVICE_INTERFACE_ENTRYPOINT | ( | visualisation_manager | ) |