This file is indexed.

/usr/share/gtk-doc/html/libinstpatch/IpatchDLS2.html is in libinstpatch-doc 1.0.0-3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>IpatchDLS2</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="ch04.html" title="DLS patches">
<link rel="prev" href="ch04.html" title="DLS patches">
<link rel="next" href="IpatchDLSFile.html" title="IpatchDLSFile">
<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="ch04.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="ch04.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="IpatchDLSFile.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#IpatchDLS2.synopsis" class="shortcut">Top</a>
                 | 
                <a href="#IpatchDLS2.description" class="shortcut">Description</a>
                 | 
                <a href="#IpatchDLS2.object-hierarchy" class="shortcut">Object Hierarchy</a>
                 | 
                <a href="#IpatchDLS2.properties" class="shortcut">Properties</a>
</td></tr>
</table>
<div class="refentry" title="IpatchDLS2">
<a name="IpatchDLS2"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="IpatchDLS2.top_of_page"></a>IpatchDLS2</span></h2>
<p>IpatchDLS2 — DLS version 2 instrument file object</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1" title="Stability Level">
<a name="IpatchDLS2.stability-level"></a><h2>Stability Level</h2>
Stable, unless otherwise indicated
</div>
<div class="refsynopsisdiv" title="Synopsis">
<a name="IpatchDLS2.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
                    <a
href="../libinstpatch/IpatchDLS2.html#IpatchDLS2-struct"
>IpatchDLS2</a>;
enum                <a
href="../libinstpatch/IpatchDLS2.html#IpatchDLS2Flags"
>IpatchDLS2Flags</a>;
#define             <a
href="../libinstpatch/IpatchDLS2.html#IPATCH-DLS2-UNUSED-FLAG-SHIFT--CAPS"
>IPATCH_DLS2_UNUSED_FLAG_SHIFT</a>
<a
href="../libinstpatch/IpatchDLS2.html"
>IpatchDLS2</a> *        <a
href="../libinstpatch/IpatchDLS2.html#ipatch-dls2-new"
>ipatch_dls2_new</a>                     (void);
#define             <a
href="../libinstpatch/IpatchDLS2.html#ipatch-dls2-get-insts"
>ipatch_dls2_get_insts</a>               (dls)
#define             <a
href="../libinstpatch/IpatchDLS2.html#ipatch-dls2-get-samples"
>ipatch_dls2_get_samples</a>             (dls)
void                <a
href="../libinstpatch/IpatchDLS2.html#ipatch-dls2-set-file"
>ipatch_dls2_set_file</a>                (<a
href="../libinstpatch/IpatchDLS2.html"
>IpatchDLS2</a> *dls,
                                                         <a
href="../libinstpatch/IpatchDLSFile.html"
>IpatchDLSFile</a> *file);
<a
href="../libinstpatch/IpatchDLSFile.html"
>IpatchDLSFile</a> *     <a
href="../libinstpatch/IpatchDLS2.html#ipatch-dls2-get-file"
>ipatch_dls2_get_file</a>                (<a
href="../libinstpatch/IpatchDLS2.html"
>IpatchDLS2</a> *dls);
char *              <a
href="../libinstpatch/IpatchDLS2.html#ipatch-dls2-get-info"
>ipatch_dls2_get_info</a>                (<a
href="../libinstpatch/IpatchDLS2.html"
>IpatchDLS2</a> *dls,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
>guint32</a> fourcc);
void                <a
href="../libinstpatch/IpatchDLS2.html#ipatch-dls2-set-info"
>ipatch_dls2_set_info</a>                (<a
href="../libinstpatch/IpatchDLS2.html"
>IpatchDLS2</a> *dls,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
>guint32</a> fourcc,
                                                         const char *val);
char *              <a
href="../libinstpatch/IpatchDLS2.html#ipatch-dls2-make-unique-name"
>ipatch_dls2_make_unique_name</a>        (<a
href="../libinstpatch/IpatchDLS2.html"
>IpatchDLS2</a> *dls,
                                                         <a
href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#GType"
>GType</a> child_type,
                                                         const char *name,
                                                         const <a
href="../libinstpatch/IpatchItem.html"
>IpatchItem</a> *exclude);
<a
href="../libinstpatch/IpatchDLS2Inst.html"
>IpatchDLS2Inst</a> *    <a
href="../libinstpatch/IpatchDLS2.html#ipatch-dls2-find-inst"
>ipatch_dls2_find_inst</a>               (<a
href="../libinstpatch/IpatchDLS2.html"
>IpatchDLS2</a> *dls,
                                                         const char *name,
                                                         int bank,
                                                         int program,
                                                         const <a
href="../libinstpatch/IpatchDLS2Inst.html"
>IpatchDLS2Inst</a> *exclude);
<a
href="../libinstpatch/IpatchDLS2Sample.html"
>IpatchDLS2Sample</a> *  <a
href="../libinstpatch/IpatchDLS2.html#ipatch-dls2-find-sample"
>ipatch_dls2_find_sample</a>             (<a
href="../libinstpatch/IpatchDLS2.html"
>IpatchDLS2</a> *dls,
                                                         const char *name,
                                                         const <a
href="../libinstpatch/IpatchDLS2Sample.html"
>IpatchDLS2Sample</a> *exclude);
<a
href="../libinstpatch/IpatchList.html"
>IpatchList</a> *        <a
href="../libinstpatch/IpatchDLS2.html#ipatch-dls2-get-region-references"
>ipatch_dls2_get_region_references</a>   (<a
href="../libinstpatch/IpatchDLS2Sample.html"
>IpatchDLS2Sample</a> *sample);
</pre>
</div>
<div class="refsect1" title="Object Hierarchy">
<a name="IpatchDLS2.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
  <a
href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"
>GObject</a>
   +----<a
href="../libinstpatch/IpatchItem.html"
>IpatchItem</a>
         +----<a
href="../libinstpatch/IpatchContainer.html"
>IpatchContainer</a>
               +----<a
href="../libinstpatch/IpatchBase.html"
>IpatchBase</a>
                     +----IpatchDLS2
                           +----<a
href="../libinstpatch/IpatchGig.html"
>IpatchGig</a>
</pre>
</div>
<div class="refsect1" title="Properties">
<a name="IpatchDLS2.properties"></a><h2>Properties</h2>
<pre class="synopsis">
  "<a
href="../libinstpatch/IpatchDLS2.html#IpatchDLS2--archive-location"
>archive-location</a>"         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>*                : Read / Write
  "<a
href="../libinstpatch/IpatchDLS2.html#IpatchDLS2--artist"
>artist</a>"                   <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>*                : Read / Write
  "<a
href="../libinstpatch/IpatchDLS2.html#IpatchDLS2--comment"
>comment</a>"                  <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>*                : Read / Write
  "<a
href="../libinstpatch/IpatchDLS2.html#IpatchDLS2--commissioned"
>commissioned</a>"             <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>*                : Read / Write
  "<a
href="../libinstpatch/IpatchDLS2.html#IpatchDLS2--copyright"
>copyright</a>"                <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>*                : Read / Write
  "<a
href="../libinstpatch/IpatchDLS2.html#IpatchDLS2--date"
>date</a>"                     <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>*                : Read / Write
  "<a
href="../libinstpatch/IpatchDLS2.html#IpatchDLS2--engineer"
>engineer</a>"                 <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>*                : Read / Write
  "<a
href="../libinstpatch/IpatchDLS2.html#IpatchDLS2--genre"
>genre</a>"                    <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>*                : Read / Write
  "<a
href="../libinstpatch/IpatchDLS2.html#IpatchDLS2--keywords"
>keywords</a>"                 <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>*                : Read / Write
  "<a
href="../libinstpatch/IpatchDLS2.html#IpatchDLS2--medium"
>medium</a>"                   <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>*                : Read / Write
  "<a
href="../libinstpatch/IpatchDLS2.html#IpatchDLS2--name"
>name</a>"                     <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>*                : Read / Write
  "<a
href="../libinstpatch/IpatchDLS2.html#IpatchDLS2--product"
>product</a>"                  <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>*                : Read / Write
  "<a
href="../libinstpatch/IpatchDLS2.html#IpatchDLS2--software"
>software</a>"                 <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>*                : Read / Write
  "<a
href="../libinstpatch/IpatchDLS2.html#IpatchDLS2--source"
>source</a>"                   <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>*                : Read / Write
  "<a
href="../libinstpatch/IpatchDLS2.html#IpatchDLS2--source-form"
>source-form</a>"              <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>*                : Read / Write
  "<a
href="../libinstpatch/IpatchDLS2.html#IpatchDLS2--subject"
>subject</a>"                  <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>*                : Read / Write
  "<a
href="../libinstpatch/IpatchDLS2.html#IpatchDLS2--technician"
>technician</a>"               <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>*                : Read / Write
  "<a
href="../libinstpatch/IpatchDLS2.html#IpatchDLS2--version"
>version</a>"                  <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>*                : Read / Write
</pre>
</div>
<div class="refsect1" title="Description">
<a name="IpatchDLS2.description"></a><h2>Description</h2>
<p>
Object type for DLS version 2 format instruments.</p>
</div>
<div class="refsect1" title="Details">
<a name="IpatchDLS2.details"></a><h2>Details</h2>
<div class="refsect2" title="IpatchDLS2">
<a name="IpatchDLS2-struct"></a><h3>IpatchDLS2</h3>
<pre class="programlisting">typedef struct {
  IpatchBase parent_instance;

  /* NOTE: This is not the DLS version! Optional descriptive stamp version */
  guint32 ms_version; /* most significant 32 bits of 64 bit version */
  guint32 ls_version; /* least significant 32 bits of 64 bit version */

  IpatchDLS2Info *info;		/* info strings */
  GSList *insts;		/* list of #IpatchDLS2Inst objects */
  GSList *samples;		/* list of #IpatchDLS2Sample objects */

  guint8 *dlid;	/* 16 bytes or NULL - globally unique ID (indicates changes) */
} IpatchDLS2;
</pre>
</div>
<hr>
<div class="refsect2" title="enum IpatchDLS2Flags">
<a name="IpatchDLS2Flags"></a><h3>enum IpatchDLS2Flags</h3>
<pre class="programlisting">typedef enum
{
  /* set if the ms_version/ls_version values are valid */
  IPATCH_DLS2_VERSION_SET = 1 &lt;&lt; IPATCH_BASE_UNUSED_FLAG_SHIFT
} IpatchDLS2Flags;
</pre>
</div>
<hr>
<div class="refsect2" title="IPATCH_DLS2_UNUSED_FLAG_SHIFT">
<a name="IPATCH-DLS2-UNUSED-FLAG-SHIFT--CAPS"></a><h3>IPATCH_DLS2_UNUSED_FLAG_SHIFT</h3>
<pre class="programlisting">#define IPATCH_DLS2_UNUSED_FLAG_SHIFT (IPATCH_BASE_UNUSED_FLAG_SHIFT + 4)
</pre>
</div>
<hr>
<div class="refsect2" title="ipatch_dls2_new ()">
<a name="ipatch-dls2-new"></a><h3>ipatch_dls2_new ()</h3>
<pre class="programlisting"><a
href="../libinstpatch/IpatchDLS2.html"
>IpatchDLS2</a> *        ipatch_dls2_new                     (void);</pre>
<p>
Create a new DLS base object.</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> New DLS base object with a reference count of 1. Caller
owns the reference and removing it will destroy the item.
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="ipatch_dls2_get_insts()">
<a name="ipatch-dls2-get-insts"></a><h3>ipatch_dls2_get_insts()</h3>
<pre class="programlisting">#define             ipatch_dls2_get_insts(dls)</pre>
</div>
<hr>
<div class="refsect2" title="ipatch_dls2_get_samples()">
<a name="ipatch-dls2-get-samples"></a><h3>ipatch_dls2_get_samples()</h3>
<pre class="programlisting">#define             ipatch_dls2_get_samples(dls)</pre>
</div>
<hr>
<div class="refsect2" title="ipatch_dls2_set_file ()">
<a name="ipatch-dls2-set-file"></a><h3>ipatch_dls2_set_file ()</h3>
<pre class="programlisting">void                ipatch_dls2_set_file                (<a
href="../libinstpatch/IpatchDLS2.html"
>IpatchDLS2</a> *dls,
                                                         <a
href="../libinstpatch/IpatchDLSFile.html"
>IpatchDLSFile</a> *file);</pre>
<p>
Sets the file object of a DLS object. DLS files are kept open
for sample data that references the file. This function sets a
DLS object's authoritive file. A convenience function, as
<a
href="../libinstpatch/IpatchBase.html#ipatch-base-set-file"
><code class="function">ipatch_base_set_file()</code></a> does the same thing (albeit without more specific
type casting).</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>dls</code></em> :</span></p></td>
<td> DLS to set file object of
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>file</code></em> :</span></p></td>
<td> File object to use with the DLS object
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="ipatch_dls2_get_file ()">
<a name="ipatch-dls2-get-file"></a><h3>ipatch_dls2_get_file ()</h3>
<pre class="programlisting"><a
href="../libinstpatch/IpatchDLSFile.html"
>IpatchDLSFile</a> *     ipatch_dls2_get_file                (<a
href="../libinstpatch/IpatchDLS2.html"
>IpatchDLS2</a> *dls);</pre>
<p>
Gets the file object of a DLS. The returned DLS file object's
reference count has been incremented. The caller owns the reference and is
responsible for removing it with g_object_unref.
A convenience function as <a
href="../libinstpatch/IpatchBase.html#ipatch-base-get-file"
><code class="function">ipatch_base_get_file()</code></a> does the same thing
(albeit without more specific type casting).</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>dls</code></em> :</span></p></td>
<td> DLS object to get file object of
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> The DLS file object or <code class="literal">NULL</code> if <em class="parameter"><code>dls</code></em> is not open. Remember
to unref the file object with <a
href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#g-object-unref"
><code class="function">g_object_unref()</code></a> when done with it.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="ipatch_dls2_get_info ()">
<a name="ipatch-dls2-get-info"></a><h3>ipatch_dls2_get_info ()</h3>
<pre class="programlisting">char *              ipatch_dls2_get_info                (<a
href="../libinstpatch/IpatchDLS2.html"
>IpatchDLS2</a> *dls,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
>guint32</a> fourcc);</pre>
<p>
Get a DLS info string by FOURCC integer ID (integer representation of
a 4 character RIFF chunk ID, see <a
href="../libinstpatch/IpatchRiff.html"
><span class="type">IpatchRiff</span></a>).</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>dls</code></em> :</span></p></td>
<td> DLS to get info from
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>fourcc</code></em> :</span></p></td>
<td> FOURCC integer id of INFO to get
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> New allocated info string value or <code class="literal">NULL</code> if no info with the
given <em class="parameter"><code>fourcc</code></em> ID. String should be freed when finished with it.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="ipatch_dls2_set_info ()">
<a name="ipatch-dls2-set-info"></a><h3>ipatch_dls2_set_info ()</h3>
<pre class="programlisting">void                ipatch_dls2_set_info                (<a
href="../libinstpatch/IpatchDLS2.html"
>IpatchDLS2</a> *dls,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
>guint32</a> fourcc,
                                                         const char *val);</pre>
<p>
Sets an INFO value in a DLS object.
</p>
<p>
Emits changed signal on DLS object.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>dls</code></em> :</span></p></td>
<td> DLS to set info of
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>fourcc</code></em> :</span></p></td>
<td> FOURCC integer ID of INFO to set
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>val</code></em> :</span></p></td>
<td> Value to set info to or <code class="literal">NULL</code> to unset (clear) info.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="ipatch_dls2_make_unique_name ()">
<a name="ipatch-dls2-make-unique-name"></a><h3>ipatch_dls2_make_unique_name ()</h3>
<pre class="programlisting">char *              ipatch_dls2_make_unique_name        (<a
href="../libinstpatch/IpatchDLS2.html"
>IpatchDLS2</a> *dls,
                                                         <a
href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#GType"
>GType</a> child_type,
                                                         const char *name,
                                                         const <a
href="../libinstpatch/IpatchItem.html"
>IpatchItem</a> *exclude);</pre>
<p>
Generates a unique name for the given <em class="parameter"><code>child_type</code></em> in <em class="parameter"><code>dls</code></em>. The <em class="parameter"><code>name</code></em>
parameter is used as a base and is modified, by appending a number, to
make it unique (if necessary). The <em class="parameter"><code>exclude</code></em> parameter is used to exclude
an existing <em class="parameter"><code>dls</code></em> child item from the search.
</p>
<p>
MT-Note: To ensure that an item is actually unique before being
added to a DLS object, <a
href="../libinstpatch/IpatchContainer.html#ipatch-container-add-unique"
><code class="function">ipatch_container_add_unique()</code></a> should be
used.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>dls</code></em> :</span></p></td>
<td> DLS object
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>child_type</code></em> :</span></p></td>
<td> A child type of <em class="parameter"><code>dls</code></em> to search for a unique name in
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td> An initial name to use or NULL
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>exclude</code></em> :</span></p></td>
<td> An item to exclude from search or NULL
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> A new unique name which should be freed when finished with it.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="ipatch_dls2_find_inst ()">
<a name="ipatch-dls2-find-inst"></a><h3>ipatch_dls2_find_inst ()</h3>
<pre class="programlisting"><a
href="../libinstpatch/IpatchDLS2Inst.html"
>IpatchDLS2Inst</a> *    ipatch_dls2_find_inst               (<a
href="../libinstpatch/IpatchDLS2.html"
>IpatchDLS2</a> *dls,
                                                         const char *name,
                                                         int bank,
                                                         int program,
                                                         const <a
href="../libinstpatch/IpatchDLS2Inst.html"
>IpatchDLS2Inst</a> *exclude);</pre>
<p>
Find a instrument by name or bank:program MIDI numbers. If instrument <em class="parameter"><code>name</code></em>
and <em class="parameter"><code>bank</code></em>:<em class="parameter"><code>program</code></em> are specified then match for either condition.
If a instrument is found its reference count is incremented before it
is returned. The caller is responsible for removing the reference
with <a
href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#g-object-unref"
><code class="function">g_object_unref()</code></a> when finished with it.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>dls</code></em> :</span></p></td>
<td> DLS object to search in
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td> Name of instrument to find or <code class="literal">NULL</code> to match any name
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>bank</code></em> :</span></p></td>
<td> MIDI bank number of instrument to search for or -1 to not search by
  MIDI bank:program numbers
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>program</code></em> :</span></p></td>
<td> MIDI program number of instrument to search for, only used
  if <em class="parameter"><code>bank</code></em> is 0-128
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>exclude</code></em> :</span></p></td>
<td> A instrument to exclude from the search or <code class="literal">NULL</code>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> The matching instrument or <code class="literal">NULL</code> if not found. Remember to unref
the item when finished with it.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="ipatch_dls2_find_sample ()">
<a name="ipatch-dls2-find-sample"></a><h3>ipatch_dls2_find_sample ()</h3>
<pre class="programlisting"><a
href="../libinstpatch/IpatchDLS2Sample.html"
>IpatchDLS2Sample</a> *  ipatch_dls2_find_sample             (<a
href="../libinstpatch/IpatchDLS2.html"
>IpatchDLS2</a> *dls,
                                                         const char *name,
                                                         const <a
href="../libinstpatch/IpatchDLS2Sample.html"
>IpatchDLS2Sample</a> *exclude);</pre>
<p>
Find a sample by <em class="parameter"><code>name</code></em> in a SoundFont. If a sample is found its
reference count is incremented before it is returned. The caller
is responsible for removing the reference with <a
href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#g-object-unref"
><code class="function">g_object_unref()</code></a>
when finished with it.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>dls</code></em> :</span></p></td>
<td> SoundFont to search in
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td> Name of sample to find
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>exclude</code></em> :</span></p></td>
<td> A sample to exclude from the search or <code class="literal">NULL</code>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> The matching sample or <code class="literal">NULL</code> if not found. Remember to unref
the item when finished with it.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="ipatch_dls2_get_region_references ()">
<a name="ipatch-dls2-get-region-references"></a><h3>ipatch_dls2_get_region_references ()</h3>
<pre class="programlisting"><a
href="../libinstpatch/IpatchList.html"
>IpatchList</a> *        ipatch_dls2_get_region_references   (<a
href="../libinstpatch/IpatchDLS2Sample.html"
>IpatchDLS2Sample</a> *sample);</pre>
<p>
Get list of regions referencing an <a
href="../libinstpatch/IpatchDLS2Sample.html"
><span class="type">IpatchDLS2Sample</span></a>.</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 to locate referencing regions of.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> New item list containing <a
href="../libinstpatch/IpatchDLS2Region.html"
><span class="type">IpatchDLS2Region</span></a> objects
that refer to <em class="parameter"><code>sample</code></em>. The returned list has a reference count of 1 which
the caller owns, unreference it when done.
</td>
</tr>
</tbody>
</table></div>
</div>
</div>
<div class="refsect1" title="Property Details">
<a name="IpatchDLS2.property-details"></a><h2>Property Details</h2>
<div class="refsect2" title='The "archive-location" property'>
<a name="IpatchDLS2--archive-location"></a><h3>The <code class="literal">"archive-location"</code> property</h3>
<pre class="programlisting">  "archive-location"         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>*                : Read / Write</pre>
<p>Location where subject is archived.</p>
<p>Default value: NULL</p>
</div>
<hr>
<div class="refsect2" title='The "artist" property'>
<a name="IpatchDLS2--artist"></a><h3>The <code class="literal">"artist"</code> property</h3>
<pre class="programlisting">  "artist"                   <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>*                : Read / Write</pre>
<p>Original artist.</p>
<p>Default value: NULL</p>
</div>
<hr>
<div class="refsect2" title='The "comment" property'>
<a name="IpatchDLS2--comment"></a><h3>The <code class="literal">"comment"</code> property</h3>
<pre class="programlisting">  "comment"                  <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>*                : Read / Write</pre>
<p>Comments.</p>
<p>Default value: NULL</p>
</div>
<hr>
<div class="refsect2" title='The "commissioned" property'>
<a name="IpatchDLS2--commissioned"></a><h3>The <code class="literal">"commissioned"</code> property</h3>
<pre class="programlisting">  "commissioned"             <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>*                : Read / Write</pre>
<p>Who commissioned the material.</p>
<p>Default value: NULL</p>
</div>
<hr>
<div class="refsect2" title='The "copyright" property'>
<a name="IpatchDLS2--copyright"></a><h3>The <code class="literal">"copyright"</code> property</h3>
<pre class="programlisting">  "copyright"                <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>*                : Read / Write</pre>
<p>Copyright.</p>
<p>Default value: NULL</p>
</div>
<hr>
<div class="refsect2" title='The "date" property'>
<a name="IpatchDLS2--date"></a><h3>The <code class="literal">"date"</code> property</h3>
<pre class="programlisting">  "date"                     <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>*                : Read / Write</pre>
<p>Creation date (YYYY-MM-DD).</p>
<p>Default value: NULL</p>
</div>
<hr>
<div class="refsect2" title='The "engineer" property'>
<a name="IpatchDLS2--engineer"></a><h3>The <code class="literal">"engineer"</code> property</h3>
<pre class="programlisting">  "engineer"                 <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>*                : Read / Write</pre>
<p>Engineers separated by "; ".</p>
<p>Default value: NULL</p>
</div>
<hr>
<div class="refsect2" title='The "genre" property'>
<a name="IpatchDLS2--genre"></a><h3>The <code class="literal">"genre"</code> property</h3>
<pre class="programlisting">  "genre"                    <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>*                : Read / Write</pre>
<p>Genre.</p>
<p>Default value: NULL</p>
</div>
<hr>
<div class="refsect2" title='The "keywords" property'>
<a name="IpatchDLS2--keywords"></a><h3>The <code class="literal">"keywords"</code> property</h3>
<pre class="programlisting">  "keywords"                 <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>*                : Read / Write</pre>
<p>Keywords (separated by "; ").</p>
<p>Default value: NULL</p>
</div>
<hr>
<div class="refsect2" title='The "medium" property'>
<a name="IpatchDLS2--medium"></a><h3>The <code class="literal">"medium"</code> property</h3>
<pre class="programlisting">  "medium"                   <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>*                : Read / Write</pre>
<p>Original medium of the material (record, CD, etc).</p>
<p>Default value: NULL</p>
</div>
<hr>
<div class="refsect2" title='The "name" property'>
<a name="IpatchDLS2--name"></a><h3>The <code class="literal">"name"</code> property</h3>
<pre class="programlisting">  "name"                     <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>*                : Read / Write</pre>
<p>Name.</p>
<p>Default value: "untitled"</p>
</div>
<hr>
<div class="refsect2" title='The "product" property'>
<a name="IpatchDLS2--product"></a><h3>The <code class="literal">"product"</code> property</h3>
<pre class="programlisting">  "product"                  <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>*                : Read / Write</pre>
<p>Product intended for.</p>
<p>Default value: NULL</p>
</div>
<hr>
<div class="refsect2" title='The "software" property'>
<a name="IpatchDLS2--software"></a><h3>The <code class="literal">"software"</code> property</h3>
<pre class="programlisting">  "software"                 <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>*                : Read / Write</pre>
<p>Editor software used.</p>
<p>Default value: NULL</p>
</div>
<hr>
<div class="refsect2" title='The "source" property'>
<a name="IpatchDLS2--source"></a><h3>The <code class="literal">"source"</code> property</h3>
<pre class="programlisting">  "source"                   <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>*                : Read / Write</pre>
<p>Source of the original material.</p>
<p>Default value: NULL</p>
</div>
<hr>
<div class="refsect2" title='The "source-form" property'>
<a name="IpatchDLS2--source-form"></a><h3>The <code class="literal">"source-form"</code> property</h3>
<pre class="programlisting">  "source-form"              <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>*                : Read / Write</pre>
<p>Original source that was digitized.</p>
<p>Default value: NULL</p>
</div>
<hr>
<div class="refsect2" title='The "subject" property'>
<a name="IpatchDLS2--subject"></a><h3>The <code class="literal">"subject"</code> property</h3>
<pre class="programlisting">  "subject"                  <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>*                : Read / Write</pre>
<p>Subject of the material.</p>
<p>Default value: NULL</p>
</div>
<hr>
<div class="refsect2" title='The "technician" property'>
<a name="IpatchDLS2--technician"></a><h3>The <code class="literal">"technician"</code> property</h3>
<pre class="programlisting">  "technician"               <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>*                : Read / Write</pre>
<p>Technician who sampled the material.</p>
<p>Default value: NULL</p>
</div>
<hr>
<div class="refsect2" title='The "version" property'>
<a name="IpatchDLS2--version"></a><h3>The <code class="literal">"version"</code> property</h3>
<pre class="programlisting">  "version"                  <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>*                : Read / Write</pre>
<p>File version "n.n.n.n".</p>
<p>Default value: NULL</p>
</div>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.11</div>
</body>
</html>