\doxysection{oggz\+\_\+deprecated.\+h File Reference}
\label{oggz__deprecated_8h}\index{oggz\_deprecated.h@{oggz\_deprecated.h}}


Deprecated interfaces.  


\doxysubsubsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define \textbf{ OGGZ\+\_\+\+ERR\+\_\+\+USER\+\_\+\+STOPPED}~\textbf{ OGGZ\+\_\+\+ERR\+\_\+\+STOP\+\_\+\+OK}
\begin{DoxyCompactList}\small\item\em DEPRECATED CONSTANT. \end{DoxyCompactList}\item 
\#define \textbf{ OGGZ\+\_\+\+ERR\+\_\+\+READ\+\_\+\+STOP\+\_\+\+OK}~\textbf{ OGGZ\+\_\+\+ERR\+\_\+\+STOP\+\_\+\+OK}
\begin{DoxyCompactList}\small\item\em DEPRECATED CONSTANT. \end{DoxyCompactList}\item 
\#define \textbf{ OGGZ\+\_\+\+ERR\+\_\+\+READ\+\_\+\+STOP\+\_\+\+ERR}~\textbf{ OGGZ\+\_\+\+ERR\+\_\+\+STOP\+\_\+\+ERR}
\begin{DoxyCompactList}\small\item\em DEPRECATED CONSTANT. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
int \textbf{ oggz\+\_\+set\+\_\+metric\+\_\+linear} (\textbf{ OGGZ} $\ast$oggz, long serialno, ogg\+\_\+int64\+\_\+t granule\+\_\+rate\+\_\+numerator, ogg\+\_\+int64\+\_\+t granule\+\_\+rate\+\_\+denominator)
\begin{DoxyCompactList}\small\item\em DEPRECATED FUNCTION This function has been replaced with the more clearly named \doxyref{oggz\+\_\+set\+\_\+granulerate()}{p.}{group__metric_gaa2a86ec590161bc2295a2c8e91cefa49}. \end{DoxyCompactList}\item 
ogg\+\_\+packet $\ast$ \textbf{ oggz\+\_\+comment\+\_\+generate} (\textbf{ OGGZ} $\ast$oggz, long serialno, \textbf{ Oggz\+Stream\+Content} packet\+\_\+type, int FLAC\+\_\+final\+\_\+metadata\+\_\+block)
\begin{DoxyCompactList}\small\item\em DEPRECATED FUNCTION This function has been replaced with \doxyref{oggz\+\_\+comments\+\_\+generate()}{p.}{oggz__comments_8h_a90b562c6a44549655737fc5bff416481}, which does not require the packet\+\_\+type argument. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Deprecated interfaces. 



\doxysubsection{Macro Definition Documentation}
\index{oggz\_deprecated.h@{oggz\_deprecated.h}!OGGZ\_ERR\_READ\_STOP\_ERR@{OGGZ\_ERR\_READ\_STOP\_ERR}}
\index{OGGZ\_ERR\_READ\_STOP\_ERR@{OGGZ\_ERR\_READ\_STOP\_ERR}!oggz\_deprecated.h@{oggz\_deprecated.h}}
\doxysubsubsection{OGGZ\_ERR\_READ\_STOP\_ERR}
{\footnotesize\ttfamily \label{oggz__deprecated_8h_a7fb3e5030a672e6ecfd8e8e6bf57fdfa} 
\#define OGGZ\+\_\+\+ERR\+\_\+\+READ\+\_\+\+STOP\+\_\+\+ERR~\textbf{ OGGZ\+\_\+\+ERR\+\_\+\+STOP\+\_\+\+ERR}}



DEPRECATED CONSTANT. 

OGGZ\+\_\+\+ERR\+\_\+\+READ\+\_\+\+STOP\+\_\+\+OK, OGGZ\+\_\+\+ERR\+\_\+\+READ\+\_\+\+STOP\+\_\+\+ERR were introduced to allow the user to differentiate between a cancelled oggz\+\_\+read\+\_\+$\ast$() returning due to error or an ok condition. From 0.\+9.\+4 similar functionality was added for oggz\+\_\+write\+\_\+$\ast$(), hence this constant was renamed. \index{oggz\_deprecated.h@{oggz\_deprecated.h}!OGGZ\_ERR\_READ\_STOP\_OK@{OGGZ\_ERR\_READ\_STOP\_OK}}
\index{OGGZ\_ERR\_READ\_STOP\_OK@{OGGZ\_ERR\_READ\_STOP\_OK}!oggz\_deprecated.h@{oggz\_deprecated.h}}
\doxysubsubsection{OGGZ\_ERR\_READ\_STOP\_OK}
{\footnotesize\ttfamily \label{oggz__deprecated_8h_a0d9b4d212038e72fb45d751fe750d3cf} 
\#define OGGZ\+\_\+\+ERR\+\_\+\+READ\+\_\+\+STOP\+\_\+\+OK~\textbf{ OGGZ\+\_\+\+ERR\+\_\+\+STOP\+\_\+\+OK}}



DEPRECATED CONSTANT. 

OGGZ\+\_\+\+ERR\+\_\+\+READ\+\_\+\+STOP\+\_\+\+OK, OGGZ\+\_\+\+ERR\+\_\+\+READ\+\_\+\+STOP\+\_\+\+ERR were introduced to allow the user to differentiate between a cancelled oggz\+\_\+read\+\_\+$\ast$() returning due to error or an ok condition. From 0.\+9.\+4 similar functionality was added for oggz\+\_\+write\+\_\+$\ast$(), hence this constant was renamed. \index{oggz\_deprecated.h@{oggz\_deprecated.h}!OGGZ\_ERR\_USER\_STOPPED@{OGGZ\_ERR\_USER\_STOPPED}}
\index{OGGZ\_ERR\_USER\_STOPPED@{OGGZ\_ERR\_USER\_STOPPED}!oggz\_deprecated.h@{oggz\_deprecated.h}}
\doxysubsubsection{OGGZ\_ERR\_USER\_STOPPED}
{\footnotesize\ttfamily \label{oggz__deprecated_8h_aaa24ef96507165b2c5e1ac4108d59288} 
\#define OGGZ\+\_\+\+ERR\+\_\+\+USER\+\_\+\+STOPPED~\textbf{ OGGZ\+\_\+\+ERR\+\_\+\+STOP\+\_\+\+OK}}



DEPRECATED CONSTANT. 

OGGZ\+\_\+\+ERR\+\_\+\+USER\+\_\+\+STOPPED was introduced during development (post 0.\+8.\+3), and is similar in functionality to and numerically equal to (ie. ABI compatible with) OGGZ\+\_\+\+ERR\+\_\+\+STOP\+\_\+\+OK in $<$\doxyref{oggz/oggz\+\_\+constants.\+h}{p.}{oggz__constants_8h}$>$. It was badly named, as the preferred functionality distinguishes between a user\textquotesingle{}s Oggz\+Read\+Callback returning OGGZ\+\_\+\+STOP\+\_\+\+OK or OGGZ\+\_\+\+STOP\+\_\+\+ERR; your code should distinguish between these two too \+:-\/) Hence, don\textquotesingle{}t use this (unreleased) name in new code. 

\doxysubsection{Function Documentation}
\index{oggz\_deprecated.h@{oggz\_deprecated.h}!oggz\_comment\_generate@{oggz\_comment\_generate}}
\index{oggz\_comment\_generate@{oggz\_comment\_generate}!oggz\_deprecated.h@{oggz\_deprecated.h}}
\doxysubsubsection{oggz\_comment\_generate()}
{\footnotesize\ttfamily \label{oggz__deprecated_8h_a0089f101033898f6758e5fd172181b34} 
ogg\+\_\+packet $\ast$ oggz\+\_\+comment\+\_\+generate (\begin{DoxyParamCaption}\item[{\textbf{ OGGZ} $\ast$}]{oggz}{, }\item[{long}]{serialno}{, }\item[{\textbf{ Oggz\+Stream\+Content}}]{packet\+\_\+type}{, }\item[{int}]{FLAC\+\_\+final\+\_\+metadata\+\_\+block}{}\end{DoxyParamCaption})}



DEPRECATED FUNCTION This function has been replaced with \doxyref{oggz\+\_\+comments\+\_\+generate()}{p.}{oggz__comments_8h_a90b562c6a44549655737fc5bff416481}, which does not require the packet\+\_\+type argument. 

Instead, the packet type is determined by the content type of the stream, which was discovered when the bos packet was passed to oggz\+\_\+write\+\_\+feed.

Output a comment packet for the specified stream. 
\begin{DoxyParams}{Parameters}
{\em oggz} & A OGGZ$\ast$ handle (created with OGGZ\+\_\+\+WRITE) \\
\hline
{\em serialno} & Identify a logical bitstream within {\itshape oggz} \\
\hline
{\em packet\+\_\+type} & Type of comment packet to generate, FLAC, Ogg\+PCM, Speex, Theora and Vorbis are supported \\
\hline
{\em FLAC\+\_\+final\+\_\+metadata\+\_\+block} & Set this to zero unless the packet\+\_\+type is FLAC, and there are no further metadata blocks to follow. See note below for details. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A comment packet for the stream. When no longer needed it should be freed with \doxyref{oggz\+\_\+packet\+\_\+destroy()}{p.}{oggz__comments_8h_a9301332e99b0397cff54c3593595b809}. 
\end{DoxyReturn}

\begin{DoxyRetVals}{Return values}
{\em NULL} & content type does not support comments, not enough memory or comment was too long for FLAC \\
\hline
\end{DoxyRetVals}
\begin{DoxyNote}{Note}
FLAC streams may contain multiple metadata blocks of different types. When encapsulated in Ogg the first of these must be a Vorbis comment packet but PADDING, APPLICATION, SEEKTABLE, CUESHEET and PICTURE may follow. The last metadata block must have its first bit set to 1. Since liboggz does not know whether you will supply more metadata blocks you must tell it if this is the last (or only) metadata block by setting FLAC\+\_\+final\+\_\+metadata\+\_\+block to 1. ~\newline
 As FLAC metadata blocks are limited in size to 16MB minus 1 byte, this function will refuse to produce longer comment packets for FLAC. ~\newline
 See {\texttt{ http\+://flac.\+sourceforge.\+net/format.\+html}} for more details. 
\end{DoxyNote}
\index{oggz\_deprecated.h@{oggz\_deprecated.h}!oggz\_set\_metric\_linear@{oggz\_set\_metric\_linear}}
\index{oggz\_set\_metric\_linear@{oggz\_set\_metric\_linear}!oggz\_deprecated.h@{oggz\_deprecated.h}}
\doxysubsubsection{oggz\_set\_metric\_linear()}
{\footnotesize\ttfamily \label{oggz__deprecated_8h_a12f232bca448853e66a1226ddccff7e0} 
int oggz\+\_\+set\+\_\+metric\+\_\+linear (\begin{DoxyParamCaption}\item[{\textbf{ OGGZ} $\ast$}]{oggz}{, }\item[{long}]{serialno}{, }\item[{ogg\+\_\+int64\+\_\+t}]{granule\+\_\+rate\+\_\+numerator}{, }\item[{ogg\+\_\+int64\+\_\+t}]{granule\+\_\+rate\+\_\+denominator}{}\end{DoxyParamCaption})}



DEPRECATED FUNCTION This function has been replaced with the more clearly named \doxyref{oggz\+\_\+set\+\_\+granulerate()}{p.}{group__metric_gaa2a86ec590161bc2295a2c8e91cefa49}. 

Specify that a logical bitstream has a linear metric 
\begin{DoxyParams}{Parameters}
{\em oggz} & An \doxyref{OGGZ}{p.}{oggz_8h_a672d218df13da45a4b41d5366211bfee} handle \\
\hline
{\em serialno} & Identify the logical bitstream in {\itshape oggz} to attach this linear metric to. A value of -\/1 indicates that the metric should be attached to all unattached logical bitstreams in {\itshape oggz}. \\
\hline
{\em granule\+\_\+rate\+\_\+numerator} & The numerator of the granule rate \\
\hline
{\em granule\+\_\+rate\+\_\+denominator} & The denominator of the granule rate \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
0 Success 
\end{DoxyReturn}

\begin{DoxyRetVals}{Return values}
{\em OGGZ\+\_\+\+ERR\+\_\+\+BAD\+\_\+\+SERIALNO} & {\itshape serialno} does not identify an existing logical bitstream in {\itshape oggz}. \\
\hline
{\em OGGZ\+\_\+\+ERR\+\_\+\+BAD\+\_\+\+OGGZ} & {\itshape oggz} does not refer to an existing \doxyref{OGGZ}{p.}{oggz_8h_a672d218df13da45a4b41d5366211bfee} \\
\hline
\end{DoxyRetVals}
