📄 sound_8h-source.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>sound.h Source File</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.2.18 --><center><a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="namespaces.html">Namespace List</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> </center><hr><h1>sound.h</h1><a href="sound_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/*</span>00002 <span class="comment"> * sound.h</span>00003 <span class="comment"> *</span>00004 <span class="comment"> * Sound interface class.</span>00005 <span class="comment"> *</span>00006 <span class="comment"> * Portable Windows Library</span>00007 <span class="comment"> *</span>00008 <span class="comment"> * Copyright (c) 1993-1998 Equivalence Pty. Ltd.</span>00009 <span class="comment"> *</span>00010 <span class="comment"> * The contents of this file are subject to the Mozilla Public License</span>00011 <span class="comment"> * Version 1.0 (the "License"); you may not use this file except in</span>00012 <span class="comment"> * compliance with the License. You may obtain a copy of the License at</span>00013 <span class="comment"> * http://www.mozilla.org/MPL/</span>00014 <span class="comment"> *</span>00015 <span class="comment"> * Software distributed under the License is distributed on an "AS IS"</span>00016 <span class="comment"> * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See</span>00017 <span class="comment"> * the License for the specific language governing rights and limitations</span>00018 <span class="comment"> * under the License.</span>00019 <span class="comment"> *</span>00020 <span class="comment"> * The Original Code is Portable Windows Library.</span>00021 <span class="comment"> *</span>00022 <span class="comment"> * The Initial Developer of the Original Code is Equivalence Pty. Ltd.</span>00023 <span class="comment"> *</span>00024 <span class="comment"> * Portions are Copyright (C) 1993 Free Software Foundation, Inc.</span>00025 <span class="comment"> * All Rights Reserved.</span>00026 <span class="comment"> *</span>00027 <span class="comment"> * Contributor(s): ______________________________________.</span>00028 <span class="comment"> *</span>00029 <span class="comment"> * $Log: sound.h,v $</span>00030 <span class="comment"> * Revision 1.30 2003/12/28 02:03:18 csoutheren</span>00031 <span class="comment"> * Fixed problem with GetLastReadCount/GetLastWriteCount on Windows sound devices</span>00032 <span class="comment"> *</span>00033 <span class="comment"> * Revision 1.29 2003/11/18 10:50:26 csoutheren</span>00034 <span class="comment"> * Changed name of Windows sound device</span>00035 <span class="comment"> *</span>00036 <span class="comment"> * Revision 1.28 2003/11/14 05:59:09 csoutheren</span>00037 <span class="comment"> * Added Read function, thanks to Derek Smithies</span>00038 <span class="comment"> *</span>00039 <span class="comment"> * Revision 1.27 2003/11/12 10:25:41 csoutheren</span>00040 <span class="comment"> * Changes to allow operation of static plugins under Windows</span>00041 <span class="comment"> *</span>00042 <span class="comment"> * Revision 1.26 2003/11/12 05:18:04 csoutheren</span>00043 <span class="comment"> * Added more backwards compatibility functions for PSoundChannel</span>00044 <span class="comment"> *</span>00045 <span class="comment"> * Revision 1.25 2003/11/12 04:33:32 csoutheren</span>00046 <span class="comment"> * Fixed problem with static linking of sound plugins</span>00047 <span class="comment"> * Fixed problem with Windows sound driver</span>00048 <span class="comment"> *</span>00049 <span class="comment"> * Revision 1.24 2003/11/12 03:29:51 csoutheren</span>00050 <span class="comment"> * Initial version of plugin code from Snark of GnomeMeeting with changes</span>00051 <span class="comment"> * by Craig Southeren of Post Increment</span>00052 <span class="comment"> *</span>00053 <span class="comment"> * Revision 1.23.2.2 2003/10/13 02:42:39 dereksmithies</span>00054 <span class="comment"> * Add additional functions, so plugins work better.</span>00055 <span class="comment"> *</span>00056 <span class="comment"> * Revision 1.23.2.1 2003/10/07 03:02:28 csoutheren</span>00057 <span class="comment"> * Initial checkin of pwlib code to do plugins.</span>00058 <span class="comment"> * Modified from original code and concept provided by Snark of Gnomemeeting</span>00059 <span class="comment"> *</span>00060 <span class="comment"> * Revision 1.23 2003/09/17 05:41:59 csoutheren</span>00061 <span class="comment"> * Removed recursive includes</span>00062 <span class="comment"> *</span>00063 <span class="comment"> * Revision 1.22 2003/09/17 01:18:02 csoutheren</span>00064 <span class="comment"> * Removed recursive include file system and removed all references</span>00065 <span class="comment"> * to deprecated coooperative threading support</span>00066 <span class="comment"> *</span>00067 <span class="comment"> * Revision 1.21 2002/09/16 01:08:59 robertj</span>00068 <span class="comment"> * Added #define so can select if #pragma interface/implementation is used on</span>00069 <span class="comment"> * platform basis (eg MacOS) rather than compiler, thanks Robert Monaghan.</span>00070 <span class="comment"> *</span>00071 <span class="comment"> * Revision 1.20 2002/02/08 09:58:44 robertj</span>00072 <span class="comment"> * Slight adjustment to API and documentation for volume functions.</span>00073 <span class="comment"> *</span>00074 <span class="comment"> * Revision 1.19 2002/02/07 20:57:21 dereks</span>00075 <span class="comment"> * add SetVolume and GetVolume methods to PSoundChannel</span>00076 <span class="comment"> *</span>00077 <span class="comment"> * Revision 1.18 2001/05/22 12:49:32 robertj</span>00078 <span class="comment"> * Did some seriously wierd rewrite of platform headers to eliminate the</span>00079 <span class="comment"> * stupid GNU compiler warning about braces not matching.</span>00080 <span class="comment"> *</span>00081 <span class="comment"> * Revision 1.17 2001/02/07 03:33:43 craigs</span>00082 <span class="comment"> * Added functions to get sound channel parameters</span>00083 <span class="comment"> *</span>00084 <span class="comment"> * Revision 1.16 2000/03/04 10:15:32 robertj</span>00085 <span class="comment"> * Added simple play functions for sound files.</span>00086 <span class="comment"> *</span>00087 <span class="comment"> * Revision 1.15 1999/05/28 14:04:10 robertj</span>00088 <span class="comment"> * Added function to get default audio device.</span>00089 <span class="comment"> *</span>00090 <span class="comment"> * Revision 1.14 1999/03/09 02:59:51 robertj</span>00091 <span class="comment"> * Changed comments to doc++ compatible documentation.</span>00092 <span class="comment"> *</span>00093 <span class="comment"> * Revision 1.13 1999/02/22 10:15:14 robertj</span>00094 <span class="comment"> * Sound driver interface implementation to Linux OSS specification.</span>00095 <span class="comment"> *</span>00096 <span class="comment"> * Revision 1.12 1999/02/16 06:02:27 robertj</span>00097 <span class="comment"> * Major implementation to Linux OSS model</span>00098 <span class="comment"> *</span>00099 <span class="comment"> * Revision 1.11 1998/09/23 06:21:27 robertj</span>00100 <span class="comment"> * Added open source copyright license.</span>00101 <span class="comment"> *</span>00102 <span class="comment"> * Revision 1.10 1995/06/17 11:13:26 robertj</span>00103 <span class="comment"> * Documentation update.</span>00104 <span class="comment"> *</span>00105 <span class="comment"> * Revision 1.9 1995/03/14 12:42:40 robertj</span>00106 <span class="comment"> * Updated documentation to use HTML codes.</span>00107 <span class="comment"> *</span>00108 <span class="comment"> * Revision 1.8 1995/01/16 09:42:05 robertj</span>00109 <span class="comment"> * Documentation.</span>00110 <span class="comment"> *</span>00111 <span class="comment"> * Revision 1.7 1994/08/23 11:32:52 robertj</span>00112 <span class="comment"> * Oops</span>00113 <span class="comment"> *</span>00114 <span class="comment"> * Revision 1.6 1994/08/22 00:46:48 robertj</span>00115 <span class="comment"> * Added pragma fro GNU C++ compiler.</span>00116 <span class="comment"> *</span>00117 <span class="comment"> * Revision 1.5 1994/06/25 11:55:15 robertj</span>00118 <span class="comment"> * Unix version synchronisation.</span>00119 <span class="comment"> *</span>00120 <span class="comment"> * Revision 1.4 1994/01/03 04:42:23 robertj</span>00121 <span class="comment"> * Mass changes to common container classes and interactors etc etc etc.</span>00122 <span class="comment"> *</span>00123 <span class="comment"> * Revision 1.3 1993/09/29 03:06:30 robertj</span>00124 <span class="comment"> * Added unix compatibility to Beep()</span>00125 <span class="comment"> *</span>00126 <span class="comment"> * Revision 1.2 1993/07/14 12:49:16 robertj</span>00127 <span class="comment"> * Fixed RCS keywords.</span>00128 <span class="comment"> *</span>00129 <span class="comment"> */</span>00130 00131 00132 <span class="preprocessor">#ifndef _PSOUND</span>00133 <span class="preprocessor"></span><span class="preprocessor">#define _PSOUND</span>00134 <span class="preprocessor"></span>00135 <span class="preprocessor">#ifdef P_USE_PRAGMA</span>00136 <span class="preprocessor"></span><span class="preprocessor">#pragma interface</span>00137 <span class="preprocessor"></span><span class="preprocessor">#endif</span>00138 <span class="preprocessor"></span>00139 <span class="preprocessor">#include <<a class="code" href="pluginmgr_8h.html">ptlib/pluginmgr.h</a>></span>00140 00141 <span class="preprocessor">#if defined(_WIN32)</span>00142 <span class="preprocessor"></span><a class="code" href="plugin_8h.html#a6">PWLIB_STATIC_LOAD_PLUGIN</a>(PSoundChannel_WindowsMultimedia);00143 <span class="preprocessor">#endif</span>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -