1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>struct snd_compr_tstamp</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-struct-snd-compr-params.html" title="struct snd_compr_params"><link rel="next" href="API-struct-snd-compr-avail.html" title="struct snd_compr_avail"></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_compr_tstamp</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-struct-snd-compr-params.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-compr-avail.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-struct-snd-compr-tstamp"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>struct snd_compr_tstamp — 2 timestamp descriptor 3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="programlisting"> 4struct snd_compr_tstamp { 5 __u32 byte_offset; 6 __u32 copied_total; 7 __u32 pcm_frames; 8 __u32 pcm_io_frames; 9 __u32 sampling_rate; 10}; </pre></div><div class="refsect1"><a name="idp1095101692"></a><h2>Members</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term">byte_offset</span></dt><dd><p> 11 Byte offset in ring buffer to DSP 12 </p></dd><dt><span class="term">copied_total</span></dt><dd><p> 13 Total number of bytes copied from/to ring buffer to/by DSP 14 </p></dd><dt><span class="term">pcm_frames</span></dt><dd><p> 15 Frames decoded or encoded by DSP. This field will evolve by 16 large steps and should only be used to monitor encoding/decoding 17 progress. It shall not be used for timing estimates. 18 </p></dd><dt><span class="term">pcm_io_frames</span></dt><dd><p> 19 Frames rendered or received by DSP into a mixer or an audio 20 output/input. This field should be used for A/V sync or time estimates. 21 </p></dd><dt><span class="term">sampling_rate</span></dt><dd><p> 22 sampling rate of audio 23 </p></dd></dl></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-struct-snd-compr-params.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-compr-avail.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">struct snd_compr_params</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_compr_avail</span></td></tr></table></div></body></html> 24