[vorbis-dev] New version vorb_enc.dll

Adam Spragg adam_spragg at novaclarion.com
Mon Jun 26 09:32:53 PDT 2000



Andy Key wrote:
> 
> I've thought about this from time to time as well.  Instead of passing a
> structure to a DLL interface, it would be better to call a generic function
> to get an encoder stream handle, and then call a "SetOption" function to
> actually set the available options.  Something like:
>   hEnc = GetEncoderHandle( ENC_LAME );
>   SetIntOption( hEnc, ENC_OPT_CBITRATE, 192 );
>   SetIntOption( hEnc, ENC_OPT_VBITRATE, 256 );
>   SetIntOption( hEnc, ENC_OPT_ENABLEVBR, 1 );
>   SetAsciiOption( hEnc, ENC_OPT_ARTIST, "Goo and the Goo Band" );

Or even better

SetUnicodeOption( hEnc, ENC_OPT_UNIARTIST, L"Goo and the Goo Band" );

> ... and so on.  Another possibility is to define a COM interface, but that's
> unfortunately pretty Windows-centric.  This method has the advantage that
> it's not tied to any one operating system (like COM).


-- 
grep "caffeine" < coke >> /dev/brain

----------------
The opinions expressed in this email are mine alone, and do not neccesarily
represent those of my employer, my parents, or the people who wrote the
email software I use.

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/




More information about the Vorbis-dev mailing list