[vorbis-dev] setting lowpass

Michael Smith msmith at labyrinth.net.au
Thu Jul 11 08:48:27 PDT 2002



At 05:36 PM 7/11/02 +0200, you wrote:
>Hi,
>
>is the OV_ECTL_LOWPASS_SET in the vorbis_encode_ctl functual? I tried setting it (and set hi->set_to_stone to 0). The value is written into hi->lowpass_kHz, as I can read it out via OV_ECTL_LOWPASS_GET. Nevertheless Vorbis (I tested in VBR 48kHz) doesn't seem to care.
>
>Am I doing something wrong? Or is is crucial, *when* I set the lowpass? I am setting it after calling vorbis_encode_init_vbr.

Yes. If you want to use the encode_ctls, you must split out mode setup as
such:

 1) vorbis_encode_setup_vbr or vorbis_encode_setup_managed
 2) any ctls you want to call
 3) vorbis_encode_setup_init

vorbis_encode_ctl() should give you an error return if you just call
vorbis_encode_init_vbr() and then call it.

Michael

<p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Vorbis-dev mailing list