>Why not something like:
>lame_set_float(char *variable_name, float val);
>lame_set_int(char *variable_name, int val);

Hey, gr8, idea, and maybe another with void*?

>But this brings up another question: The code is going to do a lot of
>parsing, and it looks like each variable will require several lines of
>code?  If that is the case, then we dont actually save anything and we
>might as well just creating a short function for every variable?  This
>way there are no type casting problems.

Ah, no, I just got a gr8 idea, what we need is 3 functions:

lame_set_string(lame_global_flags *gfp, StringItem tag1, ...);
lame_set_float(lame_global_flags *gfp, FloatItem tag1, ...);
lame_set_int(lame_global_flags *gfp, IntItem tag1, ...);

Dead simple parsing using 3 different TagItem clones, and you can pass
several items at once (within the same type anyway).


- CISC

--
MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ )

Reply via email to