1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>struct snd_enc_vorbis</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="The ALSA Driver API"><link rel="up" href="ch06.html#idp1095078220" title="Compress Offload API"><link rel="prev" href="API-SNDRV-COMPRESS-IOCTL-VERSION.html" title="SNDRV_COMPRESS_IOCTL_VERSION"><link rel="next" href="API-struct-snd-enc-real.html" title="struct snd_enc_real"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">struct snd_enc_vorbis</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-SNDRV-COMPRESS-IOCTL-VERSION.html">Prev</a> </td><th width="60%" align="center">Compress Offload API</th><td width="20%" align="right"> <a accesskey="n" href="API-struct-snd-enc-real.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-struct-snd-enc-vorbis"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>struct snd_enc_vorbis — 2 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="programlisting"> 3struct snd_enc_vorbis { 4 __s32 quality; 5 __u32 managed; 6 __u32 max_bit_rate; 7 __u32 min_bit_rate; 8 __u32 downmix; 9}; </pre></div><div class="refsect1"><a name="idp1095158620"></a><h2>Members</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term">quality</span></dt><dd><p> 10Sets encoding quality to n, between -1 (low) and 10 (high). 11In the default mode of operation, the quality level is 3. 12Normal quality range is 0 - 10. 13 </p></dd><dt><span class="term">managed</span></dt><dd><p> 14Boolean. Set bitrate management mode. This turns off the 15normal VBR encoding, but allows hard or soft bitrate constraints to be 16enforced by the encoder. This mode can be slower, and may also be 17lower quality. It is primarily useful for streaming. 18 </p></dd><dt><span class="term">max_bit_rate</span></dt><dd><p> 19Enabled only if managed is TRUE 20 </p></dd><dt><span class="term">min_bit_rate</span></dt><dd><p> 21Enabled only if managed is TRUE 22 </p></dd><dt><span class="term">downmix</span></dt><dd><p> 23Boolean. Downmix input from stereo to mono (has no effect on 24non-stereo streams). Useful for lower-bitrate encoding. 25 </p></dd></dl></div></div><div class="refsect1"><a name="idp1095163124"></a><h2>Description</h2><p> 26 These options were extracted from the OpenMAX IL spec and Gstreamer vorbisenc 27 properties 28 </p><p> 29 30 For best quality users should specify VBR mode and set quality levels. 31</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-SNDRV-COMPRESS-IOCTL-VERSION.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch06.html#idp1095078220">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-struct-snd-enc-real.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">SNDRV_COMPRESS_IOCTL_VERSION</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span class="phrase">struct snd_enc_real</span></td></tr></table></div></body></html> 32