audio.html
来自「TETRIS GAME, AUTO-PLAYER AND ARTIFICIAL 」· HTML 代码 · 共 242 行
HTML
242 行
<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> -- Audio Specification Structure</DT><DT><AHREF="sdlopenaudio.html">SDL_OpenAudio</A> -- Opens the audio device with the desired parameters.</DT><DT><AHREF="sdlpauseaudio.html">SDL_PauseAudio</A> -- Pauses and unpauses the audio callback processing</DT><DT><AHREF="sdlgetaudiostatus.html">SDL_GetAudioStatus</A> -- Get the current audio state</DT><DT><AHREF="sdlloadwav.html">SDL_LoadWAV</A> -- Load a WAVE file</DT><DT><AHREF="sdlfreewav.html">SDL_FreeWAV</A> -- Frees previously opened WAV data</DT><DT><AHREF="sdlaudiocvt.html">SDL_AudioCVT</A> -- Audio Conversion Structure</DT><DT><AHREF="sdlbuildaudiocvt.html">SDL_BuildAudioCVT</A> -- Initializes a SDL_AudioCVT structure for conversion</DT><DT><AHREF="sdlconvertaudio.html">SDL_ConvertAudio</A> -- Convert audio data to a desired audio format.</DT><DT><AHREF="sdlmixaudio.html">SDL_MixAudio</A> -- Mix audio data</DT><DT><AHREF="sdllockaudio.html">SDL_LockAudio</A> -- Lock out the callback function</DT><DT><AHREF="sdlunlockaudio.html">SDL_UnlockAudio</A> -- Unlock the callback function</DT><DT><AHREF="sdlcloseaudio.html">SDL_CloseAudio</A> -- 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 + =
减小字号Ctrl + -
显示快捷键?