1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>IpatchSampleList</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.75.1">
<link rel="home" href="index.html" title="libinstpatch Reference Manual">
<link rel="up" href="ch03.html" title="Sample data objects and functions">
<link rel="prev" href="libinstpatch-sample.html" title="sample">
<link rel="next" href="IpatchSndFile.html" title="IpatchSndFile">
<meta name="generator" content="GTK-Doc V1.11 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="chapter" href="ch01.html" title="Base objects and functions">
<link rel="chapter" href="ch02.html" title="Utility objects and functions">
<link rel="chapter" href="ch03.html" title="Sample data objects and functions">
<link rel="chapter" href="ch04.html" title="DLS patches">
<link rel="chapter" href="ch05.html" title="SoundFont patches">
<link rel="chapter" href="ch06.html" title="GigaSampler patches">
<link rel="chapter" href="ch07.html" title="Virtual banks">
<link rel="chapter" href="object-tree.html" title="Object Hierarchy">
<link rel="index" href="api-index-full.html" title="API Index">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="libinstpatch-sample.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="ch03.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">libinstpatch Reference Manual</th>
<td><a accesskey="n" href="IpatchSndFile.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#libinstpatch-IpatchSampleList.synopsis" class="shortcut">Top</a>
|
<a href="#libinstpatch-IpatchSampleList.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry" title="IpatchSampleList">
<a name="libinstpatch-IpatchSampleList"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="libinstpatch-IpatchSampleList.top_of_page"></a>IpatchSampleList</span></h2>
<p>IpatchSampleList — Sample list data types and functions</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1" title="Stability Level">
<a name="libinstpatch-IpatchSampleList.stability-level"></a><h2>Stability Level</h2>
Stable, unless otherwise indicated
</div>
<div class="refsynopsisdiv" title="Synopsis">
<a name="libinstpatch-IpatchSampleList.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
<a
href="../libinstpatch/libinstpatch-IpatchSampleList.html#IpatchSampleList"
>IpatchSampleList</a>;
<a
href="../libinstpatch/libinstpatch-IpatchSampleList.html#IpatchSampleListItem"
>IpatchSampleListItem</a>;
#define <a
href="../libinstpatch/libinstpatch-IpatchSampleList.html#IPATCH-TYPE-SAMPLE-LIST--CAPS"
>IPATCH_TYPE_SAMPLE_LIST</a>
<a
href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"
>GType</a> <a
href="../libinstpatch/libinstpatch-IpatchSampleList.html#ipatch-sample-list-get-type"
>ipatch_sample_list_get_type</a> (void);
<a
href="../libinstpatch/libinstpatch-IpatchSampleList.html#IpatchSampleList"
>IpatchSampleList</a> * <a
href="../libinstpatch/libinstpatch-IpatchSampleList.html#ipatch-sample-list-new"
>ipatch_sample_list_new</a> (void);
void <a
href="../libinstpatch/libinstpatch-IpatchSampleList.html#ipatch-sample-list-free"
>ipatch_sample_list_free</a> (<a
href="../libinstpatch/libinstpatch-IpatchSampleList.html#IpatchSampleList"
>IpatchSampleList</a> *list);
<a
href="../libinstpatch/libinstpatch-IpatchSampleList.html#IpatchSampleList"
>IpatchSampleList</a> * <a
href="../libinstpatch/libinstpatch-IpatchSampleList.html#ipatch-sample-list-duplicate"
>ipatch_sample_list_duplicate</a> (<a
href="../libinstpatch/libinstpatch-IpatchSampleList.html#IpatchSampleList"
>IpatchSampleList</a> *list);
<a
href="../libinstpatch/libinstpatch-IpatchSampleList.html#IpatchSampleListItem"
>IpatchSampleListItem</a> * <a
href="../libinstpatch/libinstpatch-IpatchSampleList.html#ipatch-sample-list-item-new"
>ipatch_sample_list_item_new</a> (void);
<a
href="../libinstpatch/libinstpatch-IpatchSampleList.html#IpatchSampleListItem"
>IpatchSampleListItem</a> * <a
href="../libinstpatch/libinstpatch-IpatchSampleList.html#ipatch-sample-list-item-new-init"
>ipatch_sample_list_item_new_init</a> (<a
href="../libinstpatch/IpatchSample.html"
>IpatchSample</a> *sample,
<a
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
>guint</a> ofs,
<a
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
>guint</a> size,
<a
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
>guint</a> channel);
void <a
href="../libinstpatch/libinstpatch-IpatchSampleList.html#ipatch-sample-list-item-free"
>ipatch_sample_list_item_free</a> (<a
href="../libinstpatch/libinstpatch-IpatchSampleList.html#IpatchSampleListItem"
>IpatchSampleListItem</a> *item);
<a
href="../libinstpatch/libinstpatch-IpatchSampleList.html#IpatchSampleListItem"
>IpatchSampleListItem</a> * <a
href="../libinstpatch/libinstpatch-IpatchSampleList.html#ipatch-sample-list-item-duplicate"
>ipatch_sample_list_item_duplicate</a>
(<a
href="../libinstpatch/libinstpatch-IpatchSampleList.html#IpatchSampleListItem"
>IpatchSampleListItem</a> *item);
void <a
href="../libinstpatch/libinstpatch-IpatchSampleList.html#ipatch-sample-list-append"
>ipatch_sample_list_append</a> (<a
href="../libinstpatch/libinstpatch-IpatchSampleList.html#IpatchSampleList"
>IpatchSampleList</a> *list,
<a
href="../libinstpatch/IpatchSample.html"
>IpatchSample</a> *sample,
<a
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
>guint</a> ofs,
<a
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
>guint</a> size,
<a
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
>guint</a> channel);
void <a
href="../libinstpatch/libinstpatch-IpatchSampleList.html#ipatch-sample-list-prepend"
>ipatch_sample_list_prepend</a> (<a
href="../libinstpatch/libinstpatch-IpatchSampleList.html#IpatchSampleList"
>IpatchSampleList</a> *list,
<a
href="../libinstpatch/IpatchSample.html"
>IpatchSample</a> *sample,
<a
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
>guint</a> ofs,
<a
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
>guint</a> size,
<a
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
>guint</a> channel);
void <a
href="../libinstpatch/libinstpatch-IpatchSampleList.html#ipatch-sample-list-insert-index"
>ipatch_sample_list_insert_index</a> (<a
href="../libinstpatch/libinstpatch-IpatchSampleList.html#IpatchSampleList"
>IpatchSampleList</a> *list,
<a
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
>guint</a> index,
<a
href="../libinstpatch/IpatchSample.html"
>IpatchSample</a> *sample,
<a
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
>guint</a> ofs,
<a
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
>guint</a> size,
<a
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
>guint</a> channel);
void <a
href="../libinstpatch/libinstpatch-IpatchSampleList.html#ipatch-sample-list-insert"
>ipatch_sample_list_insert</a> (<a
href="../libinstpatch/libinstpatch-IpatchSampleList.html#IpatchSampleList"
>IpatchSampleList</a> *list,
<a
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
>guint</a> pos,
<a
href="../libinstpatch/IpatchSample.html"
>IpatchSample</a> *sample,
<a
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
>guint</a> ofs,
<a
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
>guint</a> size,
<a
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
>guint</a> channel);
void <a
href="../libinstpatch/libinstpatch-IpatchSampleList.html#ipatch-sample-list-cut"
>ipatch_sample_list_cut</a> (<a
href="../libinstpatch/libinstpatch-IpatchSampleList.html#IpatchSampleList"
>IpatchSampleList</a> *list,
<a
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
>guint</a> pos,
<a
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
>guint</a> size);
<a
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
>gboolean</a> <a
href="../libinstpatch/libinstpatch-IpatchSampleList.html#ipatch-sample-list-render"
>ipatch_sample_list_render</a> (<a
href="../libinstpatch/libinstpatch-IpatchSampleList.html#IpatchSampleList"
>IpatchSampleList</a> *list,
<a
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"
>gpointer</a> buf,
<a
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
>guint</a> pos,
<a
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
>guint</a> size,
int format,
<a
href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"
>GError</a> **err);
</pre>
</div>
<div class="refsect1" title="Description">
<a name="libinstpatch-IpatchSampleList.description"></a><h2>Description</h2>
<p>
Sample lists define audio data from concatenated segments of other
audio sources. The lists are always mono (a single channel can be
selected from multi-channel sources). Multi-channel audio can be
created from combining multiple sample lists of the same length.</p>
</div>
<div class="refsect1" title="Details">
<a name="libinstpatch-IpatchSampleList.details"></a><h2>Details</h2>
<div class="refsect2" title="IpatchSampleList">
<a name="IpatchSampleList"></a><h3>IpatchSampleList</h3>
<pre class="programlisting">typedef struct {
GList *items; /* list of IpatchSampleListItem structs */
guint total_size; /* total size of audio data in frames */
} IpatchSampleList;
</pre>
<p>
A sample edit list. Allows for non-destructive sample editing by defining
new audio samples from one or more audio sample segments.</p>
</div>
<hr>
<div class="refsect2" title="IpatchSampleListItem">
<a name="IpatchSampleListItem"></a><h3>IpatchSampleListItem</h3>
<pre class="programlisting">typedef struct {
IpatchSample *sample; /* Sample for this segment */
guint ofs; /* Offset in sample of segment start */
guint size; /* Size in frames of audio segment */
guint32 channel : 3; /* Channel to use in sample */
guint32 reserved : 29;
} IpatchSampleListItem;
</pre>
<p>
Defines an audio segment in a <a
href="../libinstpatch/libinstpatch-IpatchSampleList.html#IpatchSampleList"
><span class="type">IpatchSampleList</span></a>.</p>
</div>
<hr>
<div class="refsect2" title="IPATCH_TYPE_SAMPLE_LIST">
<a name="IPATCH-TYPE-SAMPLE-LIST--CAPS"></a><h3>IPATCH_TYPE_SAMPLE_LIST</h3>
<pre class="programlisting">#define IPATCH_TYPE_SAMPLE_LIST (ipatch_sample_list_get_type ())
</pre>
</div>
<hr>
<div class="refsect2" title="ipatch_sample_list_get_type ()">
<a name="ipatch-sample-list-get-type"></a><h3>ipatch_sample_list_get_type ()</h3>
<pre class="programlisting"><a
href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"
>GType</a> ipatch_sample_list_get_type (void);</pre>
</div>
<hr>
<div class="refsect2" title="ipatch_sample_list_new ()">
<a name="ipatch-sample-list-new"></a><h3>ipatch_sample_list_new ()</h3>
<pre class="programlisting"><a
href="../libinstpatch/libinstpatch-IpatchSampleList.html#IpatchSampleList"
>IpatchSampleList</a> * ipatch_sample_list_new (void);</pre>
<p>
Creates a new empty (zero item terminated) sample list.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> Newly allocated empty sample list.
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="ipatch_sample_list_free ()">
<a name="ipatch-sample-list-free"></a><h3>ipatch_sample_list_free ()</h3>
<pre class="programlisting">void ipatch_sample_list_free (<a
href="../libinstpatch/libinstpatch-IpatchSampleList.html#IpatchSampleList"
>IpatchSampleList</a> *list);</pre>
<p>
Free a sample list.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>list</code></em> :</span></p></td>
<td> Sample list to free
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="ipatch_sample_list_duplicate ()">
<a name="ipatch-sample-list-duplicate"></a><h3>ipatch_sample_list_duplicate ()</h3>
<pre class="programlisting"><a
href="../libinstpatch/libinstpatch-IpatchSampleList.html#IpatchSampleList"
>IpatchSampleList</a> * ipatch_sample_list_duplicate (<a
href="../libinstpatch/libinstpatch-IpatchSampleList.html#IpatchSampleList"
>IpatchSampleList</a> *list);</pre>
<p>
Duplicate a sample list.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>list</code></em> :</span></p></td>
<td> Sample list to duplicate
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> Newly allocated duplicate of <em class="parameter"><code>list</code></em>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="ipatch_sample_list_item_new ()">
<a name="ipatch-sample-list-item-new"></a><h3>ipatch_sample_list_item_new ()</h3>
<pre class="programlisting"><a
href="../libinstpatch/libinstpatch-IpatchSampleList.html#IpatchSampleListItem"
>IpatchSampleListItem</a> * ipatch_sample_list_item_new (void);</pre>
<p>
Create a new node for a sample list.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> Newly allocated list node which should be freed with
<a
href="../libinstpatch/libinstpatch-IpatchSampleList.html#ipatch-sample-list-item-free"
><code class="function">ipatch_sample_list_item_free()</code></a> when finished using it.
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="ipatch_sample_list_item_new_init ()">
<a name="ipatch-sample-list-item-new-init"></a><h3>ipatch_sample_list_item_new_init ()</h3>
<pre class="programlisting"><a
href="../libinstpatch/libinstpatch-IpatchSampleList.html#IpatchSampleListItem"
>IpatchSampleListItem</a> * ipatch_sample_list_item_new_init (<a
href="../libinstpatch/IpatchSample.html"
>IpatchSample</a> *sample,
<a
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
>guint</a> ofs,
<a
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
>guint</a> size,
<a
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
>guint</a> channel);</pre>
<p>
Create a new sample list item and initialize it with the provided parameters.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>sample</code></em> :</span></p></td>
<td> Sample containing audio for the segment
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>ofs</code></em> :</span></p></td>
<td> Offset in <em class="parameter"><code>sample</code></em> of audio segment
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
<td> Size of audio segment in frames
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>channel</code></em> :</span></p></td>
<td> Channel to use from <em class="parameter"><code>sample</code></em>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> Newly allocated sample list item which should be freed with
<a
href="../libinstpatch/libinstpatch-IpatchSampleList.html#ipatch-sample-list-item-free"
><code class="function">ipatch_sample_list_item_free()</code></a> when done with it.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="ipatch_sample_list_item_free ()">
<a name="ipatch-sample-list-item-free"></a><h3>ipatch_sample_list_item_free ()</h3>
<pre class="programlisting">void ipatch_sample_list_item_free (<a
href="../libinstpatch/libinstpatch-IpatchSampleList.html#IpatchSampleListItem"
>IpatchSampleListItem</a> *item);</pre>
<p>
Free a sample list item previously allocated by <a
href="../libinstpatch/libinstpatch-IpatchSampleList.html#ipatch-sample-list-item-new"
><code class="function">ipatch_sample_list_item_new()</code></a>.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>item</code></em> :</span></p></td>
<td> Sample list item to free
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="ipatch_sample_list_item_duplicate ()">
<a name="ipatch-sample-list-item-duplicate"></a><h3>ipatch_sample_list_item_duplicate ()</h3>
<pre class="programlisting"><a
href="../libinstpatch/libinstpatch-IpatchSampleList.html#IpatchSampleListItem"
>IpatchSampleListItem</a> * ipatch_sample_list_item_duplicate
(<a
href="../libinstpatch/libinstpatch-IpatchSampleList.html#IpatchSampleListItem"
>IpatchSampleListItem</a> *item);</pre>
<p>
Duplicate a sample list item node.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>item</code></em> :</span></p></td>
<td> Sample list item to duplicate
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> New duplicate sample list item.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="ipatch_sample_list_append ()">
<a name="ipatch-sample-list-append"></a><h3>ipatch_sample_list_append ()</h3>
<pre class="programlisting">void ipatch_sample_list_append (<a
href="../libinstpatch/libinstpatch-IpatchSampleList.html#IpatchSampleList"
>IpatchSampleList</a> *list,
<a
href="../libinstpatch/IpatchSample.html"
>IpatchSample</a> *sample,
<a
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
>guint</a> ofs,
<a
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
>guint</a> size,
<a
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
>guint</a> channel);</pre>
<p>
Append an audio segment to a sample list.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>list</code></em> :</span></p></td>
<td> Sample list
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>sample</code></em> :</span></p></td>
<td> Sample containing audio segment to append
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>ofs</code></em> :</span></p></td>
<td> Offset in <em class="parameter"><code>sample</code></em> of beginning of audio segment (in frames)
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
<td> Number of frames of audio segment to append
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>channel</code></em> :</span></p></td>
<td> Channel to use from <em class="parameter"><code>sample</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="ipatch_sample_list_prepend ()">
<a name="ipatch-sample-list-prepend"></a><h3>ipatch_sample_list_prepend ()</h3>
<pre class="programlisting">void ipatch_sample_list_prepend (<a
href="../libinstpatch/libinstpatch-IpatchSampleList.html#IpatchSampleList"
>IpatchSampleList</a> *list,
<a
href="../libinstpatch/IpatchSample.html"
>IpatchSample</a> *sample,
<a
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
>guint</a> ofs,
<a
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
>guint</a> size,
<a
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
>guint</a> channel);</pre>
<p>
Prepend an audio segment to a sample list.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>list</code></em> :</span></p></td>
<td> Sample list
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>sample</code></em> :</span></p></td>
<td> Sample containing audio segment to prepend
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>ofs</code></em> :</span></p></td>
<td> Offset in <em class="parameter"><code>sample</code></em> of beginning of audio segment (in frames)
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
<td> Number of frames of audio segment to prepend
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>channel</code></em> :</span></p></td>
<td> Channel to use from <em class="parameter"><code>sample</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="ipatch_sample_list_insert_index ()">
<a name="ipatch-sample-list-insert-index"></a><h3>ipatch_sample_list_insert_index ()</h3>
<pre class="programlisting">void ipatch_sample_list_insert_index (<a
href="../libinstpatch/libinstpatch-IpatchSampleList.html#IpatchSampleList"
>IpatchSampleList</a> *list,
<a
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
>guint</a> index,
<a
href="../libinstpatch/IpatchSample.html"
>IpatchSample</a> *sample,
<a
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
>guint</a> ofs,
<a
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
>guint</a> size,
<a
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
>guint</a> channel);</pre>
<p>
Insert an audio segment into a sample list before a given list segment
<em class="parameter"><code>index</code></em>.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>list</code></em> :</span></p></td>
<td> Sample list
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>index</code></em> :</span></p></td>
<td> List index to insert segment before (0 = prepend, -1 = append)
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>sample</code></em> :</span></p></td>
<td> Sample containing audio segment to insert
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>ofs</code></em> :</span></p></td>
<td> Offset in <em class="parameter"><code>sample</code></em> of beginning of audio segment (in frames)
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
<td> Number of frames of audio segment to insert
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>channel</code></em> :</span></p></td>
<td> Channel to use from <em class="parameter"><code>sample</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="ipatch_sample_list_insert ()">
<a name="ipatch-sample-list-insert"></a><h3>ipatch_sample_list_insert ()</h3>
<pre class="programlisting">void ipatch_sample_list_insert (<a
href="../libinstpatch/libinstpatch-IpatchSampleList.html#IpatchSampleList"
>IpatchSampleList</a> *list,
<a
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
>guint</a> pos,
<a
href="../libinstpatch/IpatchSample.html"
>IpatchSample</a> *sample,
<a
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
>guint</a> ofs,
<a
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
>guint</a> size,
<a
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
>guint</a> channel);</pre>
<p>
Insert an audio segment into a sample list at a given sample position
in frames (<em class="parameter"><code>pos</code></em>). Existing segments will be split as needed to accomodate
the inserted segment.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>list</code></em> :</span></p></td>
<td> Sample list
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>pos</code></em> :</span></p></td>
<td> Position in audio data in frames to insert segment at
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>sample</code></em> :</span></p></td>
<td> Sample containing audio segment to insert
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>ofs</code></em> :</span></p></td>
<td> Offset in <em class="parameter"><code>sample</code></em> of beginning of audio segment (in frames)
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
<td> Number of frames of audio segment to insert
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>channel</code></em> :</span></p></td>
<td> Channel to use from <em class="parameter"><code>sample</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="ipatch_sample_list_cut ()">
<a name="ipatch-sample-list-cut"></a><h3>ipatch_sample_list_cut ()</h3>
<pre class="programlisting">void ipatch_sample_list_cut (<a
href="../libinstpatch/libinstpatch-IpatchSampleList.html#IpatchSampleList"
>IpatchSampleList</a> *list,
<a
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
>guint</a> pos,
<a
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
>guint</a> size);</pre>
<p>
Cut a segment of audio from a sample list.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>list</code></em> :</span></p></td>
<td> Sample list
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>pos</code></em> :</span></p></td>
<td> Start position of sample data to cut, in frames
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
<td> Size of area to cut, in frames
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="ipatch_sample_list_render ()">
<a name="ipatch-sample-list-render"></a><h3>ipatch_sample_list_render ()</h3>
<pre class="programlisting"><a
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
>gboolean</a> ipatch_sample_list_render (<a
href="../libinstpatch/libinstpatch-IpatchSampleList.html#IpatchSampleList"
>IpatchSampleList</a> *list,
<a
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"
>gpointer</a> buf,
<a
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
>guint</a> pos,
<a
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
>guint</a> size,
int format,
<a
href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"
>GError</a> **err);</pre>
<p>
Copies sample data from a sample list, converting as necessary and storing
to <em class="parameter"><code>buf</code></em>.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>list</code></em> :</span></p></td>
<td> Sample list
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>buf</code></em> :</span></p></td>
<td> Buffer to store the rendered audio to (should be <em class="parameter"><code>size</code></em> * bytes_per_frame)
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>pos</code></em> :</span></p></td>
<td> Position in sample list audio to start from, in frames
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
<td> Size of sample data to render in frames
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>format</code></em> :</span></p></td>
<td> Sample format to render to (must be mono)
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>err</code></em> :</span></p></td>
<td> Location to store error to or <code class="literal">NULL</code> to ignore
</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.11</div>
</body>
</html>
|