[vlc-devel] Lua Interface questions
wangxiang
wangxiang68 at gmail.com
Mon Jun 29 18:58:21 CEST 2009
hi, everyone
I have some thoughts of the lua audio-filter design, and I need some
discussion with someone more familiar with the function interface.
like I have pass the filter to the functions: Then the parameters like the
"aout_buffer_t * p_in_buf, aout_buffer_t * p_out_buf", should be passed by
what method ?
The key question is how the parameters should be passed and where to alloc
the memory.
Thanks!
*static int vlclua_aout_filter_resample( lua_State * L )
{
vlc_object_t *p_this = vlclua_get_auout_filter_internal( L );
/******* Enable the filters ********/
aout_EnableFilter( VLC_OBJECT(p_this), "resampler",true);
p_this->pf_do_work( aout_instance_t * p_aout, aout_filter_t * p_filter,
aout_buffer_t * p_in_buf, aout_buffer_t * p_out_buf );
return 0;
}
static int vlclua_aout_filter_channel_mixer( lua_State * L )
{
vlc_object_t *p_this = vlclua_get_auout_filter_internal( L );
/******* Enable the filters ********/
aout_EnableFilter( VLC_OBJECT(p_this), "channel_mixer",true);
return 0;
}
static int vlclua_aout_filter_converter( lua_State * L )
{
vlc_object_t *p_this = vlclua_get_auout_filter_internal( L );
/******* Enable the filters ********/
aout_EnableFilter( VLC_OBJECT(p_this), "converter",true);
return 0;
}*
--
Xiang Wang
Institue Of Acoustics, CAS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20090630/54f7027a/attachment.html>
More information about the vlc-devel
mailing list