haiku-website/static/legacy-docs/bebook/TheGameKit_Constants.html

28 lines
7.6 KiB
HTML
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!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"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>The Be Book - Classes And Methods - The Game Kit</title><link rel="stylesheet" href="be_book.css" type="text/css" media="all" /><link rel="shortcut icon" type="image/vnd.microsoft.icon" href="./images/favicon.ico" /><!--[if IE]>
<link rel="stylesheet" type="text/css" href="be_book_ie.css" />
<![endif]--><meta name="generator" content="DocBook XSL Stylesheets V1.73.2" /><meta name="keywords" content="Access, BeOS, BeBook, API" /><link rel="start" href="index.html" title="The Be Book" /><link rel="up" href="TheGameKit.html" title="The Game Kit" /><link rel="prev" href="TheGameKit_CardHooks.html" title="Graphics Card Hook Functions" /><link rel="next" href="TheGameKit_DefinedTypes.html" title="Defined Types" /></head><body><div id="header"><div id="headerT"><div id="headerTL"><a accesskey="p" href="TheGameKit_CardHooks.html" title="Graphics Card Hook Functions"><img src="./images/navigation/prev.png" alt="Prev" /></a> <a accesskey="u" href="TheGameKit.html" title="The Game Kit"><img src="./images/navigation/up.png" alt="Up" /></a> <a accesskey="n" href="TheGameKit_DefinedTypes.html" title="Defined Types"><img src="./images/navigation/next.png" alt="Next" /></a></div><div id="headerTR"><div id="navigpeople"><a href="http://www.haiku-os.org"><img src="./images/People_24.png" alt="haiku-os.org" title="Visit The Haiku Website" /></a></div><div class="navighome" title="Home"><a accesskey="h" href="index.html"><img src="./images/navigation/home.png" alt="Home" /></a></div><div class="navigboxed" id="navigindex"><a accesskey="i" href="ClassIndex.html" title="Index">I</a></div><div class="navigboxed" id="naviglang" title="English">en</div></div><div id="headerTC">The Be Book - Classes And Methods - The Game Kit</div></div><div id="headerB">Prev: <a href="TheGameKit_CardHooks.html">Graphics Card Hook Functions</a>  Up: <a href="TheGameKit.html">The Game Kit</a>  Next: <a href="TheGameKit_DefinedTypes.html">Defined Types</a></div><hr /></div><div class="section"><div xmlns="" xmlns:d="http://docbook.org/ns/docbook" class="titlepage"><div><div xmlns:d="http://docbook.org/ns/docbook"><h2 xmlns="http://www.w3.org/1999/xhtml" class="title"><a id="TheGameKit_Constants"></a>Constants</h2></div></div></div><div class="section"><div xmlns="" xmlns:d="http://docbook.org/ns/docbook" class="titlepage"><div><hr /><div xmlns:d="http://docbook.org/ns/docbook"><h3 xmlns="http://www.w3.org/1999/xhtml" class="title"><a id="TheGameKit_Constants_Control_Flags"></a>Control Flags</h3></div></div></div><p>Declared in: <code class="filename">add-ons/graphics/GraphicsCard.h</code></p><pre class="programlisting definition c"><code class="constant">B_CRT_CONTROL</code>
<code class="constant">B_GAMMA_CONTROL</code>
<code class="constant">B_FRAME_BUFFER_CONTROL</code></pre><p>These flags report the driver's ability to control the CRT display, make
gamma corrections, and permit nonstandard configurations of the frame
buffer. Only the last has any meaning for the Game Kit.</p><p>See also:
<a class="link" href="BWindowScreen.html#BWindowScreen_CardInfo" title="CardInfo()"><code class="methodname">CardInfo()</code></a></p></div><div class="section"><div xmlns="" xmlns:d="http://docbook.org/ns/docbook" class="titlepage"><div><hr /><div xmlns:d="http://docbook.org/ns/docbook"><h3 xmlns="http://www.w3.org/1999/xhtml" class="title"><a id="TheGameKit_Constants_gs_attributes"></a>gs_attributes</h3></div></div></div><p>Declared in: <code class="filename">game/GameSoundDefs.h</code></p><pre class="programlisting definition c"><code class="constant">B_GS_MAIN_GAIN</code>
<code class="constant">B_GS_CD_THROUGH_GAIN</code>
<code class="constant">B_GS_GAIN</code>
<code class="constant">B_GS_PAN</code>
<code class="constant">B_GS_SAMPLING_RATE</code>
<code class="constant">B_GS_LOOPING</code>
<code class="constant">B_GS_FIRST_PRIVATE_ATTRIBUTE</code>
<code class="constant">B_GS_FIRST_USER_ATTRIBUTE</code></pre><p>
These are the various possible game sound attributes. The range between
<code class="constant">B_GS_FIRST_PRIVATE_ATTRIBUTE</code> and <code class="constant">B_GS_FIRST_USER_ATTRIBUTE</code> are reserved;
if you need custom attributes, use values <code class="constant">B_GS_FIRST_USER_ATTRIBUTE</code> and
higher.
</p><table class="variablelist constants"><thead><tr><th>Constant</th><th>Description</th></tr></thead><tbody><tr><td><p><span class="term"><code class="constant">B_GS_MAIN_GAIN</code></span></p></td><td><p>Main gain control, in decibels. The main gain doesn't
support ramping.</p></td></tr><tr><td><p><span class="term"><code class="constant">B_GS_CD_THROUGH_GAIN</code></span></p></td><td><p>Gain on the CD through, in decibels.</p></td></tr><tr><td><p><span class="term"><code class="constant">B_GS_GAIN</code></span></p></td><td><p>Gain on the sound, in decibels.</p></td></tr><tr><td><p><span class="term"><code class="constant">B_GS_PAN</code></span></p></td><td><p>Pan position of the sound. -1.0 for far left, 0 for middle, 1.0
for far right.</p></td></tr><tr><td><p><span class="term"><code class="constant">B_GS_SAMPLING_RATE</code></span></p></td><td><p>Sampling rate in hertz.</p></td></tr><tr><td><p><span class="term"><code class="constant">B_GS_LOOPING</code></span></p></td><td><p>If the attribute's value is nonzero, the sound automatically
loops. If it's 0, the sound plays through just once.</p></td></tr><tr><td><p><span class="term"><code class="constant">B_GS_FIRST_PRIVATE_ATTRIBUTE</code></span></p></td><td><p>Beginning of private attribute range</p></td></tr><tr><td><p><span class="term"><code class="constant">B_GS_FIRST_USER_ATTRIBUTE</code></span></p></td><td><p>Beginning of user attribute range.</p></td></tr></tbody></table></div></div><div id="footer"><hr /><div id="footerT">Prev: <a href="TheGameKit_CardHooks.html">Graphics Card Hook Functions</a>  Up: <a href="TheGameKit.html">The Game Kit</a>  Next: <a href="TheGameKit_DefinedTypes.html">Defined Types</a> </div><div id="footerB"><div id="footerBL"><a href="TheGameKit_CardHooks.html" title="Graphics Card Hook Functions"><img src="./images/navigation/prev.png" alt="Prev" /></a> <a href="TheGameKit.html" title="The Game Kit"><img src="./images/navigation/up.png" alt="Up" /></a> <a href="TheGameKit_DefinedTypes.html" title="Defined Types"><img src="./images/navigation/next.png" alt="Next" /></a></div><div id="footerBR"><div><a href="http://www.haiku-os.org"><img src="./images/People_24.png" alt="haiku-os.org" title="Visit The Haiku Website" /></a></div><div class="navighome" title="Home"><a accesskey="h" href="index.html"><img src="./images/navigation/home.png" alt="Home" /></a></div></div><div id="footerBC"><a href="http://www.access-company.com/home.html" title="ACCESS Co."><img alt="Access Company" src="./images/access_logo.png" /></a></div></div></div><div id="licenseFooter"><div id="licenseFooterBL"><a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/3.0/" title="Creative Commons License"><img alt="Creative Commons License" style="border-width:0" src="https://licensebuttons.net/l/by-nc-nd/3.0/88x31.png" /></a></div><div id="licenseFooterBR"><a href="./LegalNotice.html">Legal Notice</a></div><div id="licenseFooterBC"><span id="licenseText">This work is licensed under a
<a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/3.0/">Creative
Commons Attribution-Non commercial-No Derivative Works 3.0 License</a>.</span></div></div></body></html>