Hello j-b
Thanks for your reply so far!
Well, being honest I don't know what you mean with "documenting 1) and 2)"?
Last day I was playing around a bit:
extending basic libvlc functions to my jvlc-environment in eclipse and adding the mentiones functions eq_enable().. in the file audio.c.
Iorientated on how the eq is being controlled by looking in the file "modules\gui\qt4\components\extended_panels.cpp", which is the implementation of the eq-gui.
So here's the code which i put in my enablement-function:
Code: Select all
/*****************************************************************************
* libvlc_eqEnable : Enable Equalizer
*****************************************************************************/
void libvlc_eqEnable( libvlc_instance_t *p_instance,
char bands,
libvlc_exception_t *p_e )
{
//aout_instance_t *p_aout= (aout_instance_t *)vlc_object_find(p_intf, VLC_OBJECT_AOUT, FIND_ANYWHERE);
aout_instance_t *p_aout = GetAOut( p_instance, p_e );
aout_EnableFilter( p_aout, "equalizer", true );
var_SetString( p_aout, "equalizer-bands", "0 0 0 0 0 5 5 5 5 5");
After successfully compiling and making a self-contained package, I tried to start this function via the JVLC-function is my eclipse-project.
As a result there came out the following debug log:
[0x7e10cd8] main audio output debug: removing module "converter_float"
[0x5f8c9c0] main audio filter debug: removing module "scaletempo"
[0x7cf9b10] main audio output debug: removing module "bandlimited_resampler"
[0x7d07e70] main audio output debug: input 's16l' 22050 Hz Stereo frame=1 samples/4 bytes
[0x7cf9b10] main audio filter debug: looking for audio filter module: 1 candidate
[0x7cf9b10] scaletempo audio filter warning: bad input or output format
[0x7cf9b10] main audio filter warning: no audio filter module matching "scaletempo" could be loaded
[0x7cf9b10] main audio filter debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
[0x7cf9b10] main audio filter debug: looking for audio filter module: 1 candidate
[0x7cf9b10] scaletempo audio filter debug: format: 22050 rate, 2 nch, 4 bps, fl32
[0x7cf9b10] scaletempo audio filter debug: params: 30 stride, 0.200 overlap, 14 search
[0x7cf9b10] scaletempo audio filter debug: 1.000 scale, 661.000 stride_in, 661 stride_out, 529 standing, 132 overlap, 308 search, 1101 queue, fl32 mode
[0x7cf9b10] main audio filter debug: using audio filter module "scaletempo"
[0x7cf9b10] main audio filter debug: TIMER module_need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms)
[0x7d07e70] main audio output debug: filter(s) 's16l'->'fl32' 22050 Hz->22050 Hz Stereo->Stereo
[0x5f8c9c0] main audio output debug: looking for audio filter module: 24 candidates
[0x5f8c9c0] main audio output debug: using audio filter module "converter_float"
[0x5f8c9c0] main audio output debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
[0x7d07e70] main audio output debug: found a filter for the whole conversion
[0x7e10cd8] main audio filter debug: looking for audio filter module: 1 candidate
[0x7e10cd8] equalizer audio filter error: rate not supported
[0x7e10cd8] main audio filter warning: no audio filter module matching "equalizer" could be loaded
[0x7e10cd8] main audio filter debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
[0x7e10cd8] main audio filter debug: looking for visualization module: 0 candidates
[0x7e10cd8] main audio filter error: no visualization module matched "equalizer"
[0x7e10cd8] main audio filter debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
[0x7d07e70] main audio output error: cannot add user filter equalizer (skipped)
So for me it seems that the function call worked, but the equalizer could not be loaded and started.
Is there an need of adding the equalizer module in my eclipse-environment? any startup parameters needed?
Or is the problem because I pass a p_aout instance with the first parameter of the aout_EnableFilter function? In the eq gui there is passed a p_intf as first parameter.
Any other issues??
@j-b:
I think I have access on Variables, since it seems to me that vlc tries to load the module.
Don't know what you mean with "access to vlc internals" though..