📄 audio.h.htm
字号:
<?xml version="1.0" encoding="iso-8859-1"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US"><head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/> <meta name="generator" content="OpenGrok v0.6beta (5cad370c5aab)"/> <link rel="icon" href="/source/default/img/icon.png" type="image/png"/> <link rel="stylesheet" type="text/css" href="/source/default/style.css"/> <link rel="stylesheet" type="text/css" href="/source/default/print.css" media="print" /> <link rel="alternate stylesheet" type="text/css" media="all" title="Paper White" href="/source/default/print.css"/> <title>Cross Reference: /onnv/onnv-gate/usr/src/cmd/cdrw/audio.h</title><script type="text/javascript"><!--function toggle_annotations() { var spans = document.getElementsByTagName("span"); for (var i = 0; i < spans.length; i++) { var span = spans[i]; if (span.className == 'blame') { span.className = 'blame-hidden'; } else if (span.className == 'blame-hidden') { span.className = 'blame'; } }}// --></script><style type="text/css"> div#Iconbar a { font-size: 11px; color: #444; text-decoration: none; background-position: 50% 0%; background-repeat: no-repeat; display: block; float: left; margin: 0 0.6em; padding-top: 34px;}div#Iconbar a#DiscussionsIcon { background-image: url(http://www.opensolaris.org/images/discussions.gif);}div#Iconbar a#CommunitiesIcon { background-image: url(http://www.opensolaris.org/images/communities.gif);}div#Iconbar a#ProjectsIcon { background-image: url(http://www.opensolaris.org/images/projects.gif);}div#Iconbar a#DownloadIcon { background-image: url(http://www.opensolaris.org/images/download.gif);}div#Iconbar a#SourceBrowserIcon { background-image: url(http://www.opensolaris.org/images/srcbrowse.gif);}</style></head><body><div id="page"><form action="/source/search"> <div id="header"><div id="MastheadLogo"><a id="MastheadLogo" href="http://www.opensolaris.org"></a></div> <div id="pagetitle"><b id="filename">Cross Reference: audio.h</b><br/></div> </div><div id="Masthead"><tt><a href="/source/xref/">xref</a>: /<a href="/source/xref/onnv/">onnv</a>/<a href="/source/xref/onnv/onnv-gate/">onnv-gate</a>/<a href="/source/xref/onnv/onnv-gate/usr/">usr</a>/<a href="/source/xref/onnv/onnv-gate/usr/src/">src</a>/<a href="/source/xref/onnv/onnv-gate/usr/src/cmd/">cmd</a>/<a href="/source/xref/onnv/onnv-gate/usr/src/cmd/cdrw/">cdrw</a>/<a href="/source/xref/onnv/onnv-gate/usr/src/cmd/cdrw/audio.h">audio.h</a></tt></div> <div id="bar"><a href="/source" id="home">Home</a> | <a id="history" href="/source/history/onnv/onnv-gate/usr/src/cmd/cdrw/audio.h">History</a> | <a href="/source/xref/onnv/onnv-gate/usr/src/cmd/cdrw/audio.h?a=true">Annotate</a> | <a id="download" href="/source/raw/onnv/onnv-gate/usr/src/cmd/cdrw/audio.h">Download</a> | <input id="search" name="q" class="q"/><input type="submit" value="Search" class="submit"/><input type="checkbox" name="path" value="/onnv/onnv-gate/usr/src/cmd/cdrw"/> only in <b>cdrw</b></div></form><div id="src"><pre><a class="l" name="1"> 1 </a><span class="c">/*<a class="l" name="2"> 2 </a> * CDDL HEADER START<a class="l" name="3"> 3 </a> *<a class="l" name="4"> 4 </a> * The contents of this file are subject to the terms of the<a class="l" name="5"> 5 </a> * Common Development and Distribution License, Version 1.0 only<a class="l" name="6"> 6 </a> * (the "License"). You may not use this file except in compliance<a class="l" name="7"> 7 </a> * with the License.<a class="l" name="8"> 8 </a> *<a class="l" name="9"> 9 </a> * You can obtain a copy of the license at <a href="/source/s?path=usr/">usr</a>/<a href="/source/s?path=usr/src/">src</a>/<a href="/source/s?path=usr/src/OPENSOLARIS.LICENSE">OPENSOLARIS.LICENSE</a><a class="hl" name="10"> 10 </a> * or <a href="http://www.opensolaris.org/os/licensing">http://www.opensolaris.org/os/licensing</a>.<a class="l" name="11"> 11 </a> * See the License for the specific language governing permissions<a class="l" name="12"> 12 </a> * and limitations under the License.<a class="l" name="13"> 13 </a> *<a class="l" name="14"> 14 </a> * When distributing Covered Code, include this CDDL HEADER in each<a class="l" name="15"> 15 </a> * file and include the License file at <a href="/source/s?path=usr/">usr</a>/<a href="/source/s?path=usr/src/">src</a>/<a href="/source/s?path=usr/src/OPENSOLARIS.LICENSE">OPENSOLARIS.LICENSE</a>.<a class="l" name="16"> 16 </a> * If applicable, add the following below this CDDL HEADER, with the<a class="l" name="17"> 17 </a> * fields enclosed by brackets "[]" replaced with your own identifying<a class="l" name="18"> 18 </a> * information: Portions Copyright [yyyy] [name of copyright owner]<a class="l" name="19"> 19 </a> *<a class="hl" name="20"> 20 </a> * CDDL HEADER END<a class="l" name="21"> 21 </a> */</span><a class="l" name="22"> 22 </a><span class="c">/*<a class="l" name="23"> 23 </a> * Copyright (c) 2001 by Sun Microsystems, Inc.<a class="l" name="24"> 24 </a> * All rights reserved.<a class="l" name="25"> 25 </a> */</span><a class="l" name="26"> 26 </a><a class="l" name="27"> 27 </a>#<b>ifndef</b> <a href="/source/s?defs=_AUDIO_H">_AUDIO_H</a><a class="l" name="28"> 28 </a>#<b>define</b> <a href="/source/s?defs=_AUDIO_H">_AUDIO_H</a><a class="l" name="29"> 29 </a><a class="hl" name="30"> 30 </a>#<b>pragma</b> <b>ident</b> <span class="s">"%Z%%M% %I% %E% SMI"</span><a class="l" name="31"> 31 </a><a class="l" name="32"> 32 </a><span class="c">/*<a class="l" name="33"> 33 </a> * Contains the audio files information for cdrw.<a class="l" name="34"> 34 </a> */</span><a class="l" name="35"> 35 </a><a class="l" name="36"> 36 </a>#<b>ifdef</b> <a href="/source/s?defs=__cplusplus">__cplusplus</a><a class="l" name="37"> 37 </a><b>extern</b> <span class="s">"C"</span> {<a class="l" name="38"> 38 </a>#<b>endif</b><a class="l" name="39"> 39 </a><a class="hl" name="40"> 40 </a>#<b>include</b> <<a href="/source/s?path=sys/types.h">sys/types.h</a>><a class="l" name="41"> 41 </a><a class="l" name="42"> 42 </a><b>typedef</b> <b>struct</b> {<a class="l" name="43"> 43 </a> <b>char</b> <a href="/source/s?defs=riff">riff</a>[<span class="n">4</span>];<a class="l" name="44"> 44 </a> <a href="/source/s?defs=uint32_t">uint32_t</a> <a href="/source/s?defs=total_chunk_size">total_chunk_size</a>;<a class="l" name="45"> 45 </a> <b>char</b> <a href="/source/s?defs=wave">wave</a>[<span class="n">4</span>];<a class="l" name="46"> 46 </a> <b>char</b> <a href="/source/s?defs=fmt">fmt</a>[<span class="n">4</span>];<a class="l" name="47"> 47 </a> <a href="/source/s?defs=uint32_t">uint32_t</a> <a href="/source/s?defs=fmt_size">fmt_size</a>;<a class="l" name="48"> 48 </a> <a href="/source/s?defs=uint16_t">uint16_t</a> <a href="/source/s?defs=fmt_tag">fmt_tag</a>;<a class="l" name="49"> 49 </a> <a href="/source/s?defs=uint16_t">uint16_t</a> <a href="/source/s?defs=n_channels">n_channels</a>;<a class="hl" name="50"> 50 </a> <a href="/source/s?defs=uint32_t">uint32_t</a> <a href="/source/s?defs=sample_rate">sample_rate</a>;<a class="l" name="51"> 51 </a> <a href="/source/s?defs=uint32_t">uint32_t</a> <a href="/source/s?defs=bytes_per_second">bytes_per_second</a>;<a class="l" name="52"> 52 </a> <a href="/source/s?defs=uint16_t">uint16_t</a> <a href="/source/s?defs=align">align</a>;<a class="l" name="53"> 53 </a> <a href="/source/s?defs=uint16_t">uint16_t</a> <a href="/source/s?defs=bits_per_sample">bits_per_sample</a>;<a class="l" name="54"> 54 </a> <b>char</b> <a href="/source/s?defs=data">data</a>[<span class="n">4</span>];<a class="l" name="55"> 55 </a> <a href="/source/s?defs=uint32_t">uint32_t</a> <a href="/source/s?defs=data_size">data_size</a>;<a class="l" name="56"> 56 </a>} <a href="/source/s?defs=Wave_filehdr">Wave_filehdr</a>;<a class="l" name="57"> 57 </a><a class="l" name="58"> 58 </a><a class="l" name="59"> 59 </a>#<b>define</b> <a href="/source/s?defs=PRE_DEF_WAV_HDR">PRE_DEF_WAV_HDR</a> { <span class="s">'R'</span>, <span class="s">'I'</span>, <span class="s">'F'</span>, <span class="s">'F'</span>, <span class="n">0</span>, <span class="n">0</span>, <span class="n">0</span>, <span class="n">0</span>, \<a class="hl" name="60"> 60 </a> <span class="s">'W'</span>, <span class="s">'A'</span>, <span class="s">'V'</span>, <span class="s">'E'</span>, <span class="s">'f'</span>, <span class="s">'m'</span>, <span class="s">'t'</span>, <span class="s">' '</span>, \<a class="l" name="61"> 61 </a> <span class="n">0x10</span>, <span class="n">0</span>, <span class="n">0</span>, <span class="n">0</span>, <span class="n">1</span>, <span class="n">0</span>, <span class="n">2</span>, <span class="n">0</span>, \<a class="l" name="62"> 62 </a> <span class="n">0x44</span>, <span class="n">0xac</span>, <span class="n">0</span>, <span class="n">0</span>, <span class="n">0x10</span>, <span class="n">0xb1</span>, <span class="n">2</span>, <span class="n">0</span>, \<a class="l" name="63"> 63 </a> <span class="n">4</span>, <span class="n">0</span>, <span class="n">0x10</span>, <span class="n">0</span>, <span class="s">'d'</span>, <span class="s">'a'</span>, <span class="s">'t'</span>, <span class="s">'a'</span>, \<a class="l" name="64"> 64 </a> <span class="n">0</span>, <span class="n">0</span>, <span class="n">0</span>, <span class="n">0</span> }<a class="l" name="65"> 65 </a>#<b>define</b> <a href="/source/s?defs=PRE_DEF_WAV_HDR_LEN">PRE_DEF_WAV_HDR_LEN</a> <span class="n">44</span><a class="l" name="66"> 66 </a><a class="l" name="67"> 67 </a>#<b>define</b> <a href="/source/s?defs=PRE_DEF_AU_HDR">PRE_DEF_AU_HDR</a> { <span class="s">'.'</span>, <span class="s">'s'</span>, <span class="s">'n'</span>, <span class="s">'d'</span>, <span class="n">0</span>, <span class="n">0</span>, <span class="n">0</span>, <span class="n">0x28</span>, \<a class="l" name="68"> 68 </a> <span class="n">0</span>, <span class="n">0</span>, <span class="n">0</span>, <span class="n">0</span>, <span class="n">0</span>, <span class="n">0</span>, <span class="n">0</span>, <span class="n">3</span>, \<a class="l" name="69"> 69 </a> <span class="n">0</span>, <span class="n">0</span>, <span class="n">0xac</span>, <span class="n">0x44</span>, <span class="n">0</span>, <span class="n">0</span>, <span class="n">0</span>, <span class="n">2</span>, \<a class="hl" name="70"> 70 </a> <span class="n">0x43</span>, <span class="n">0x44</span>, <span class="n">0x20</span>, <span class="n">0x41</span>, <span class="n">0x75</span>, <span class="n">0x64</span>, <span class="n">0x69</span>, \<a class="l" name="71"> 71 </a> <span class="n">0x6f</span>, <span class="n">0</span>, <span class="n">0</span>, <span class="n">0</span>, <span class="n">0</span>, <span class="n">0</span>, <span class="n">0</span>, <span class="n">0</span>, <span class="n">0</span> }<a class="l" name="72"> 72 </a>#<b>define</b> <a href="/source/s?defs=PRE_DEF_AU_HDR_LEN">PRE_DEF_AU_HDR_LEN</a> <span class="n">40</span><a class="l" name="73"> 73 </a><a class="l" name="74"> 74 </a>#<b>ifdef</b> <a href="/source/s?defs=__cplusplus">__cplusplus</a><a class="l" name="75"> 75 </a>}<a class="l" name="76"> 76 </a>#<b>endif</b><a class="l" name="77"> 77 </a><a class="l" name="78"> 78 </a>#<b>endif</b> <span class="c">/* _AUDIO_H */</span><a class="l" name="79"> 79 </a></pre></div><div id="Footer"><p class="Center"><a href="http://www.opensolaris.org/os/project/opengrok/"><img src="/source/default/img/servedby.png" alt="Served by OpenGrok" title="Served by OpenGrok"/></a></p><p class="Center"><a href="http://www.opensolaris.org/os/tou/">Terms of Use</a> |<a href="http://www.sun.com/privacy/">Privacy</a> |<a href="http://www.opensolaris.org/os/trademark/">Trademarks</a> |<a href="http://www.opensolaris.org/os/copyrights/">Copyright Policy</a> |<a href="http://www.opensolaris.org/os/site_guidelines/">Site Guidelines</a> |<a href="http://www.opensolaris.org/os/about/help/">Help</a><br />Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Use.<br />Copyright © 1995-2008 Sun Microsystems, Inc.<br /></p><script type="text/javascript" src="http://www.opensolaris.org/js/s_code_remote.js"></script></div></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -