⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 audio.html

📁 sdl开发库
💻 HTML
字号:
<HTML><HEAD><TITLE>Audio</TITLE><METANAME="GENERATOR"CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+"><LINKREL="HOME"TITLE="SDL Library Documentation"HREF="index.html"><LINKREL="UP"TITLE="SDL Reference"HREF="reference.html"><LINKREL="PREVIOUS"TITLE="SDL_JoystickClose"HREF="sdljoystickclose.html"><LINKREL="NEXT"TITLE="SDL_AudioSpec"HREF="sdlaudiospec.html"><METANAME="KEYWORD"CONTENT="audio"><METANAME="KEYWORD"CONTENT="function"></HEAD><BODYCLASS="CHAPTER"BGCOLOR="#FFF8DC"TEXT="#000000"LINK="#0000ee"VLINK="#551a8b"ALINK="#ff0000"><DIVCLASS="NAVHEADER"><TABLESUMMARY="Header navigation table"WIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><THCOLSPAN="3"ALIGN="center">SDL Library Documentation</TH></TR><TR><TDWIDTH="10%"ALIGN="left"VALIGN="bottom"><AHREF="sdljoystickclose.html"ACCESSKEY="P">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom"></TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><AHREF="sdlaudiospec.html"ACCESSKEY="N">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><DIVCLASS="CHAPTER"><H1><ANAME="AUDIO"></A>Chapter 10. Audio</H1><DIVCLASS="TOC"><DL><DT><B>Table of Contents</B></DT><DT><AHREF="sdlaudiospec.html">SDL_AudioSpec</A>&nbsp;--&nbsp;Audio Specification Structure</DT><DT><AHREF="sdlopenaudio.html">SDL_OpenAudio</A>&nbsp;--&nbsp;Opens the audio device with the desired parameters.</DT><DT><AHREF="sdlpauseaudio.html">SDL_PauseAudio</A>&nbsp;--&nbsp;Pauses and unpauses the audio callback processing</DT><DT><AHREF="sdlgetaudiostatus.html">SDL_GetAudioStatus</A>&nbsp;--&nbsp;Get the current audio state</DT><DT><AHREF="sdlloadwav.html">SDL_LoadWAV</A>&nbsp;--&nbsp;Load a WAVE file</DT><DT><AHREF="sdlfreewav.html">SDL_FreeWAV</A>&nbsp;--&nbsp;Frees previously opened WAV data</DT><DT><AHREF="sdlaudiocvt.html">SDL_AudioCVT</A>&nbsp;--&nbsp;Audio Conversion Structure</DT><DT><AHREF="sdlbuildaudiocvt.html">SDL_BuildAudioCVT</A>&nbsp;--&nbsp;Initializes a SDL_AudioCVT structure for conversion</DT><DT><AHREF="sdlconvertaudio.html">SDL_ConvertAudio</A>&nbsp;--&nbsp;Convert audio data to a desired audio format.</DT><DT><AHREF="sdlmixaudio.html">SDL_MixAudio</A>&nbsp;--&nbsp;Mix audio data</DT><DT><AHREF="sdllockaudio.html">SDL_LockAudio</A>&nbsp;--&nbsp;Lock out the callback function</DT><DT><AHREF="sdlunlockaudio.html">SDL_UnlockAudio</A>&nbsp;--&nbsp;Unlock the callback function</DT><DT><AHREF="sdlcloseaudio.html">SDL_CloseAudio</A>&nbsp;--&nbsp;Shuts down audio processing and closes the audio device.</DT></DL></DIV><P>Sound on the computer is translated from waves that you hear into a series of values, or samples, each representing the amplitude of the wave.  When thesesamples are sent in a stream to a sound card, an approximation of the originalwave can be recreated.  The more bits used to represent the amplitude, and thegreater frequency these samples are gathered, the closer the approximatedsound is to the original, and the better the quality of sound.</P><P>This library supports both 8 and 16 bit signed and unsigned sound samples,at frequencies ranging from 11025 Hz to 44100 Hz, depending on the underlying hardware.  If the hardware doesn't support the desired audioformat or frequency, it can be emulated if desired (See <AHREF="sdlopenaudio.html"><TTCLASS="FUNCTION">SDL_OpenAudio()</TT></A>)</P><P>A commonly supported audio format is 16 bits per sample at 22050 Hz.</P></DIV><DIVCLASS="NAVFOOTER"><HRALIGN="LEFT"WIDTH="100%"><TABLESUMMARY="Footer navigation table"WIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top"><AHREF="sdljoystickclose.html"ACCESSKEY="P">Prev</A></TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="index.html"ACCESSKEY="H">Home</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top"><AHREF="sdlaudiospec.html"ACCESSKEY="N">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">SDL_JoystickClose</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="reference.html"ACCESSKEY="U">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">SDL_AudioSpec</TD></TR></TABLE></DIV></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -