Re: Talking about the GUI

Enrico Weigelt <[email protected]>
Newsgroups gmane.comp.multimedia.media-api
Message-ID <[email protected]>
* Steve Lhomme <[email protected]> [2004-01-08 14:03:18 +0100]:

> I'm wondering how to handle the "live" paramaters of each plugin in the 
> system. For example changing the volume of the mixer plugin, the font 
> used by the subtitle plugin, or the decoding quality of an MPEG4 stream.

quite easy to solve: each object (codec, filter, etc) has runtime settable
properties.

    struct media_api_codec
    {
	...
	int (*property_query)(int pos, char* buf, int bufsz);
	int (*property_set)  (const char* name, const char* str);
	int (*property_get)  (const char* name, char* buffer, int bufsz);
	...
    }
    
<snip>
> I understand that a plugin will be compiled for a specific platform. So 
"plugin" already is the wrong word, since its normally used for those
code snippets doing too many things which dont belong together 
(i.e. codec and dialog boxes)


cu
-- 
---------------------------------------------------------------------
 Enrico Weigelt    ==   metux IT services

  phone:     +49 36207 519931         www:       http://www.metux.de/
  fax:       +49 36207 519932         email:     [email protected]
  cellphone: +49 174 7066481
---------------------------------------------------------------------
 Diese Mail wurde mit UUCP versandt.      http://www.metux.de/uucp/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.