mirror of
https://github.com/Maks1mS/pppi-rpg-game.git
synced 2024-12-23 22:32:59 +03:00
184 lines
9.4 KiB
HTML
184 lines
9.4 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||
<head>
|
||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||
<meta name="generator" content="Doxygen 1.9.1"/>
|
||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||
<title>PPPI RPG Game: Класс AudioManager</title>
|
||
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
||
<script type="text/javascript" src="jquery.js"></script>
|
||
<script type="text/javascript" src="dynsections.js"></script>
|
||
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
||
<script type="text/javascript" src="search/searchdata.js"></script>
|
||
<script type="text/javascript" src="search/search.js"></script>
|
||
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
||
</head>
|
||
<body>
|
||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||
<div id="titlearea">
|
||
<table cellspacing="0" cellpadding="0">
|
||
<tbody>
|
||
<tr style="height: 56px;">
|
||
<td id="projectalign" style="padding-left: 0.5em;">
|
||
<div id="projectname">PPPI RPG Game
|
||
</div>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
<!-- end header part -->
|
||
<!-- Создано системой Doxygen 1.9.1 -->
|
||
<script type="text/javascript">
|
||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||
var searchBox = new SearchBox("searchBox", "search",false,'Поиск','.html');
|
||
/* @license-end */
|
||
</script>
|
||
<script type="text/javascript" src="menudata.js"></script>
|
||
<script type="text/javascript" src="menu.js"></script>
|
||
<script type="text/javascript">
|
||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||
$(function() {
|
||
initMenu('',true,false,'search.php','Поиск');
|
||
$(document).ready(function() { init_search(); });
|
||
});
|
||
/* @license-end */</script>
|
||
<div id="main-nav"></div>
|
||
<!-- window showing the filter options -->
|
||
<div id="MSearchSelectWindow"
|
||
onmouseover="return searchBox.OnSearchSelectShow()"
|
||
onmouseout="return searchBox.OnSearchSelectHide()"
|
||
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
||
</div>
|
||
|
||
<!-- iframe showing the search results (closed by default) -->
|
||
<div id="MSearchResultsWindow">
|
||
<iframe src="javascript:void(0)" frameborder="0"
|
||
name="MSearchResults" id="MSearchResults">
|
||
</iframe>
|
||
</div>
|
||
|
||
</div><!-- top -->
|
||
<div class="header">
|
||
<div class="summary">
|
||
<a href="#pub-methods">Открытые члены</a> |
|
||
<a href="class_audio_manager-members.html">Полный список членов класса</a> </div>
|
||
<div class="headertitle">
|
||
<div class="title">Класс AudioManager</div> </div>
|
||
</div><!--header-->
|
||
<div class="contents">
|
||
|
||
<p>Класс <a class="el" href="class_audio_manager.html" title="Класс AudioManager управляет звуками и музыкой в игре.">AudioManager</a> управляет звуками и музыкой в игре.
|
||
<a href="class_audio_manager.html#details">Подробнее...</a></p>
|
||
|
||
<p><code>#include <<a class="el" href="audio__manager_8h_source.html">audio_manager.h</a>></code></p>
|
||
<table class="memberdecls">
|
||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
|
||
Открытые члены</h2></td></tr>
|
||
<tr class="memitem:a0801d65ee762761af37d05a8b56f0206"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_audio_manager.html#a0801d65ee762761af37d05a8b56f0206">loadSound</a> (const std::string &path)</td></tr>
|
||
<tr class="memdesc:a0801d65ee762761af37d05a8b56f0206"><td class="mdescLeft"> </td><td class="mdescRight">Загружает аудио ресурс. <a href="class_audio_manager.html#a0801d65ee762761af37d05a8b56f0206">Подробнее...</a><br /></td></tr>
|
||
<tr class="separator:a0801d65ee762761af37d05a8b56f0206"><td class="memSeparator" colspan="2"> </td></tr>
|
||
<tr class="memitem:a6c982d7c6a38dc542fd28c0b46e41fa2"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_audio_manager.html#a6c982d7c6a38dc542fd28c0b46e41fa2">playSoundEffect</a> (const std::string &soundName)</td></tr>
|
||
<tr class="memdesc:a6c982d7c6a38dc542fd28c0b46e41fa2"><td class="mdescLeft"> </td><td class="mdescRight">Воспроизводит звуковой эффект. <a href="class_audio_manager.html#a6c982d7c6a38dc542fd28c0b46e41fa2">Подробнее...</a><br /></td></tr>
|
||
<tr class="separator:a6c982d7c6a38dc542fd28c0b46e41fa2"><td class="memSeparator" colspan="2"> </td></tr>
|
||
<tr class="memitem:a5283042dbc1b91acb33a2287cfc5e6ef"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_audio_manager.html#a5283042dbc1b91acb33a2287cfc5e6ef">playMusic</a> (const std::string &musicName)</td></tr>
|
||
<tr class="memdesc:a5283042dbc1b91acb33a2287cfc5e6ef"><td class="mdescLeft"> </td><td class="mdescRight">Воспроизводит музыкальную композицию. <a href="class_audio_manager.html#a5283042dbc1b91acb33a2287cfc5e6ef">Подробнее...</a><br /></td></tr>
|
||
<tr class="separator:a5283042dbc1b91acb33a2287cfc5e6ef"><td class="memSeparator" colspan="2"> </td></tr>
|
||
<tr class="memitem:ac880de40f09c0065c10948ca138cc7be"><td class="memItemLeft" align="right" valign="top"><a id="ac880de40f09c0065c10948ca138cc7be"></a>
|
||
void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_audio_manager.html#ac880de40f09c0065c10948ca138cc7be">stopAllSounds</a> ()</td></tr>
|
||
<tr class="memdesc:ac880de40f09c0065c10948ca138cc7be"><td class="mdescLeft"> </td><td class="mdescRight">Останавливает все звуки и музыку. <br /></td></tr>
|
||
<tr class="separator:ac880de40f09c0065c10948ca138cc7be"><td class="memSeparator" colspan="2"> </td></tr>
|
||
</table>
|
||
<a name="details" id="details"></a><h2 class="groupheader">Подробное описание</h2>
|
||
<div class="textblock"><p>Класс <a class="el" href="class_audio_manager.html" title="Класс AudioManager управляет звуками и музыкой в игре.">AudioManager</a> управляет звуками и музыкой в игре. </p>
|
||
</div><h2 class="groupheader">Методы</h2>
|
||
<a id="a0801d65ee762761af37d05a8b56f0206"></a>
|
||
<h2 class="memtitle"><span class="permalink"><a href="#a0801d65ee762761af37d05a8b56f0206">◆ </a></span>loadSound()</h2>
|
||
|
||
<div class="memitem">
|
||
<div class="memproto">
|
||
<table class="memname">
|
||
<tr>
|
||
<td class="memname">void AudioManager::loadSound </td>
|
||
<td>(</td>
|
||
<td class="paramtype">const std::string & </td>
|
||
<td class="paramname"><em>path</em></td><td>)</td>
|
||
<td></td>
|
||
</tr>
|
||
</table>
|
||
</div><div class="memdoc">
|
||
|
||
<p>Загружает аудио ресурс. </p>
|
||
<dl class="params"><dt>Аргументы</dt><dd>
|
||
<table class="params">
|
||
<tr><td class="paramname">path</td><td>Путь к аудио файлу. </td></tr>
|
||
</table>
|
||
</dd>
|
||
</dl>
|
||
|
||
</div>
|
||
</div>
|
||
<a id="a5283042dbc1b91acb33a2287cfc5e6ef"></a>
|
||
<h2 class="memtitle"><span class="permalink"><a href="#a5283042dbc1b91acb33a2287cfc5e6ef">◆ </a></span>playMusic()</h2>
|
||
|
||
<div class="memitem">
|
||
<div class="memproto">
|
||
<table class="memname">
|
||
<tr>
|
||
<td class="memname">void AudioManager::playMusic </td>
|
||
<td>(</td>
|
||
<td class="paramtype">const std::string & </td>
|
||
<td class="paramname"><em>musicName</em></td><td>)</td>
|
||
<td></td>
|
||
</tr>
|
||
</table>
|
||
</div><div class="memdoc">
|
||
|
||
<p>Воспроизводит музыкальную композицию. </p>
|
||
<dl class="params"><dt>Аргументы</dt><dd>
|
||
<table class="params">
|
||
<tr><td class="paramname">musicName</td><td>Наименование музыкальной композиции. </td></tr>
|
||
</table>
|
||
</dd>
|
||
</dl>
|
||
|
||
</div>
|
||
</div>
|
||
<a id="a6c982d7c6a38dc542fd28c0b46e41fa2"></a>
|
||
<h2 class="memtitle"><span class="permalink"><a href="#a6c982d7c6a38dc542fd28c0b46e41fa2">◆ </a></span>playSoundEffect()</h2>
|
||
|
||
<div class="memitem">
|
||
<div class="memproto">
|
||
<table class="memname">
|
||
<tr>
|
||
<td class="memname">void AudioManager::playSoundEffect </td>
|
||
<td>(</td>
|
||
<td class="paramtype">const std::string & </td>
|
||
<td class="paramname"><em>soundName</em></td><td>)</td>
|
||
<td></td>
|
||
</tr>
|
||
</table>
|
||
</div><div class="memdoc">
|
||
|
||
<p>Воспроизводит звуковой эффект. </p>
|
||
<dl class="params"><dt>Аргументы</dt><dd>
|
||
<table class="params">
|
||
<tr><td class="paramname">soundName</td><td>Наименование звукового эффекта. </td></tr>
|
||
</table>
|
||
</dd>
|
||
</dl>
|
||
|
||
</div>
|
||
</div>
|
||
<hr/>Объявления и описания членов класса находятся в файле:<ul>
|
||
<li><a class="el" href="audio__manager_8h_source.html">audio_manager.h</a></li>
|
||
</ul>
|
||
</div><!-- contents -->
|
||
<!-- start footer part -->
|
||
<hr class="footer"/><address class="footer"><small>
|
||
Создано системой <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
|
||
</small></address>
|
||
</body>
|
||
</html>
|