1<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2<html lang="ja"> <head>
3<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
4<meta http-equiv="Content-Style-Type" content="text/css">
5<link href="../../css/manpage.css" rel="stylesheet" type="text/css">
6
7<title>Player Heap</title>
8</head>
9<body>
10
11<h1 id="ADV_ETC_HDDREC">Player Heap</h1>
12<p>
13This section presents an overview of player heap operations and how to use it.
14</p>
15
16<h2 id="ADV_ETC_HDDREC">About the Player Heap</h2>
17<p>
18Under the NW4C sound development environment, a conventional sound heap is used as a method of managing memory used by snd library. To create a sound heap, it is first necessary to collect the sound data required by a scene into a unit called a &quot;group.&quot; For example, assume there are dozens of tracks of BGM sequence data that can be played in a given scene. In this case, you must include all sequence data in a group which in turn requires a large amount of memory. It is possible to minimize the amount of memory consumed in cases like this by using a player heap.
19</p>
20
21<p>
22In contrast to manually loading sound data when using a sound heap, with a player heap you can automatically load sounds when playback is set to start and automatically release them at the point playback ends. A released heap can be used to load the sound data to be played next.
23</p>
24
25<p>
26The following example shows the difference between using a sound heap and using a player heap.
27</p>
28
29<p>
30<IMG src="../img/PlayerHeap.gif">
31</p>
32
33<p>
34In this way, it is possible to play all sequences as long as the size of the player heap is large enough to load the sequence data having the largest data size out of all the BGM sequence data that can be played for the given scene.
35</p>
36
37
38<h2 id="ADV_ETC_HDDREC">Using Player Heaps</h2>
39<p>
40Player heap settings are made for a Player. Specify the size of the player heap using the player heap item on the Player List.<br>
41</p>
42
43<p>
44If an attempt is made to play a sequence sound using a Player for which a player heap has been set, the sequence data will be automatically loaded into the player heap. Including sequence data in a group therefore eliminates the need to load data into the sound heap ahead of time.
45</p>
46
47<p>
48If sequence data is already loaded into the sound heap even though a player heap has been configured, the data in the sound heap is used and data is not loaded into the player heap.
49</p>
50
51<h2 id="ADV_ETC_HDDREC">Notes Regarding the Player Heap</h2>
52
53<h3>Types of Data that Can Be Loaded</h3>
54<p>
55It is possible to load only sequence data into a player heap. Bank data, wave sound data and so on cannot be loaded.
56</p>
57
58<h3>Consumed Memory Size</h3>
59<p>
60The number of memory regions allocated for the player heap is given by the sound limit. For example, if the sound limit is three, memory three times the size specified for the player heap is consumed. Furthermore, the memory regions used for the player heap are allocated as static regions at time of initialization.
61</p>
62
63<h3>Playback Start Delay</h3>
64<p>
65Data is loaded at time of playback start when using a player heap. A delay occurs in the start of sound playback because playback of the sound does not actually start until after data has been loaded.
66</p>
67<p>
68If you want sounds to start immediately at the start of playback, you can implement a playback preparation process on the program side so that data is loaded in the player heap ahead of time.
69</p>
70
71
72
73<hr><p>CONFIDENTIAL</p></body> </html>
74