-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathgroup__audio__rendering.html
More file actions
676 lines (656 loc) · 44.9 KB
/
group__audio__rendering.html
File metadata and controls
676 lines (656 loc) · 44.9 KB
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
<!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>libfluidsynth: Audio Rendering</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="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.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" />
<link href="custom.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">libfluidsynth
 <span id="projectnumber">2.5.4</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by 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,'Search','.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','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('group__audio__rendering.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- 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 class="header">
<div class="summary">
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">Audio Rendering<div class="ingroups"><a class="el" href="group__synth.html">Synthesizer</a></div></div> </div>
</div><!--header-->
<div class="contents">
<p>The functions in this section can be used to render audio directly to memory buffers.
<a href="#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga9528a3e544c0e26e80f316414d954040"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__audio__rendering.html#ga9528a3e544c0e26e80f316414d954040">fluid_synth_nwrite_float</a> (<a class="el" href="group__Types.html#gae265f10ae174a13afe010de50d87e1a4">fluid_synth_t</a> *synth, int len, float **left, float **right, float **fx_left, float **fx_right)</td></tr>
<tr class="memdesc:ga9528a3e544c0e26e80f316414d954040"><td class="mdescLeft"> </td><td class="mdescRight">Synthesize a block of floating point audio to separate audio buffers (multi-channel rendering). <a href="group__audio__rendering.html#ga9528a3e544c0e26e80f316414d954040">More...</a><br /></td></tr>
<tr class="separator:ga9528a3e544c0e26e80f316414d954040"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaf41e26b153a095dbc4248e9df4f3ad46"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__audio__rendering.html#gaf41e26b153a095dbc4248e9df4f3ad46">fluid_synth_process</a> (<a class="el" href="group__Types.html#gae265f10ae174a13afe010de50d87e1a4">fluid_synth_t</a> *synth, int len, int nfx, float *fx[], int nout, float *out[])</td></tr>
<tr class="memdesc:gaf41e26b153a095dbc4248e9df4f3ad46"><td class="mdescLeft"> </td><td class="mdescRight">Synthesize floating point audio to stereo audio channels (implements the default interface <a class="el" href="group__audio__driver.html#ga4c108916c658973df5242ae77fefa3d0" title="Callback function type used with new_fluid_audio_driver2() to allow for custom user audio processing ...">fluid_audio_func_t</a>). <a href="group__audio__rendering.html#gaf41e26b153a095dbc4248e9df4f3ad46">More...</a><br /></td></tr>
<tr class="separator:gaf41e26b153a095dbc4248e9df4f3ad46"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga7db368da2d74a73d05feaff4a6bb1da4"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__audio__rendering.html#ga7db368da2d74a73d05feaff4a6bb1da4">fluid_synth_write_float</a> (<a class="el" href="group__Types.html#gae265f10ae174a13afe010de50d87e1a4">fluid_synth_t</a> *synth, int len, void *lout, int loff, int lincr, void *rout, int roff, int rincr)</td></tr>
<tr class="memdesc:ga7db368da2d74a73d05feaff4a6bb1da4"><td class="mdescLeft"> </td><td class="mdescRight">Synthesize a block of floating point audio samples to audio buffers. <a href="group__audio__rendering.html#ga7db368da2d74a73d05feaff4a6bb1da4">More...</a><br /></td></tr>
<tr class="separator:ga7db368da2d74a73d05feaff4a6bb1da4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga6b88528d1ea6322582314197488afab7"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__audio__rendering.html#ga6b88528d1ea6322582314197488afab7">fluid_synth_write_s16</a> (<a class="el" href="group__Types.html#gae265f10ae174a13afe010de50d87e1a4">fluid_synth_t</a> *synth, int len, void *lout, int loff, int lincr, void *rout, int roff, int rincr)</td></tr>
<tr class="memdesc:ga6b88528d1ea6322582314197488afab7"><td class="mdescLeft"> </td><td class="mdescRight">Synthesize a block of 16 bit audio samples to audio buffers. <a href="group__audio__rendering.html#ga6b88528d1ea6322582314197488afab7">More...</a><br /></td></tr>
<tr class="separator:ga6b88528d1ea6322582314197488afab7"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gafe93f25a4a6a479b5344c55fe1260281"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__audio__rendering.html#gafe93f25a4a6a479b5344c55fe1260281">fluid_synth_write_s24</a> (<a class="el" href="group__Types.html#gae265f10ae174a13afe010de50d87e1a4">fluid_synth_t</a> *synth, int len, void *lout, int loff, int lincr, void *rout, int roff, int rincr)</td></tr>
<tr class="memdesc:gafe93f25a4a6a479b5344c55fe1260281"><td class="mdescLeft"> </td><td class="mdescRight">Synthesize a block of 24 bit audio samples to audio buffers. <a href="group__audio__rendering.html#gafe93f25a4a6a479b5344c55fe1260281">More...</a><br /></td></tr>
<tr class="separator:gafe93f25a4a6a479b5344c55fe1260281"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga7aa37d65824705dd3a13647f6bcb50fc"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__audio__rendering.html#ga7aa37d65824705dd3a13647f6bcb50fc">fluid_synth_write_s32</a> (<a class="el" href="group__Types.html#gae265f10ae174a13afe010de50d87e1a4">fluid_synth_t</a> *synth, int len, void *lout, int loff, int lincr, void *rout, int roff, int rincr)</td></tr>
<tr class="memdesc:ga7aa37d65824705dd3a13647f6bcb50fc"><td class="mdescLeft"> </td><td class="mdescRight">Synthesize a block of 32 bit audio samples to audio buffers. <a href="group__audio__rendering.html#ga7aa37d65824705dd3a13647f6bcb50fc">More...</a><br /></td></tr>
<tr class="separator:ga7aa37d65824705dd3a13647f6bcb50fc"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<p>The functions in this section can be used to render audio directly to memory buffers. </p>
<p>They are used internally by the <a class="el" href="group__audio__driver.html">Audio Driver</a> and <a class="el" href="group__file__renderer.html">File Renderer</a>, but can also be used manually for custom processing of the rendered audio.</p>
<dl class="section note"><dt>Note</dt><dd>Please note that all following functions block during rendering. If your goal is to render realtime audio, ensure that you call these functions from a high-priority thread with little to no other duties other than calling the rendering functions.</dd></dl>
<dl class="section warning"><dt>Warning</dt><dd>If a concurrently running thread calls any other sound affecting synth function (e.g. <a class="el" href="group__midi__messages.html#ga038a0f309e8004f39cb5491514bfac54" title="Send a note-on event to a FluidSynth object.">fluid_synth_noteon()</a>, <a class="el" href="group__midi__messages.html#ga070f05518dd8157bfd4361c9b0795659" title="Send a MIDI controller event on a MIDI channel.">fluid_synth_cc()</a>, etc.) it is unspecified whether the event triggered by such a call will be effective in the recently synthesized audio. While this is inaudible when only requesting small chunks from the synth with every call (cf. <a class="el" href="group__synthesis__params.html#gae6c73a6fa391c2e673ab0aef3a4cc944" title="Get the internal synthesis buffer size value.">fluid_synth_get_internal_bufsize()</a>), it will become evident when requesting larger sample chunks: With larger sample chunks it will get harder for the synth to react on those spontaneously occurring events in time (like events received from a MIDI driver, or directly made synth API calls). In those realtime scenarios, prefer requesting smaller sample chunks from the synth with each call, to avoid poor quantization of your events in the synthesized audio. This issue is not applicable when using the MIDI player or sequencer for event dispatching. Also refer to the documentation of <a class="el" href="settings_audio.html#settings_audio_period-size">audio.period-size</a>. </dd></dl>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga9528a3e544c0e26e80f316414d954040"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga9528a3e544c0e26e80f316414d954040">◆ </a></span>fluid_synth_nwrite_float()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int fluid_synth_nwrite_float </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__Types.html#gae265f10ae174a13afe010de50d87e1a4">fluid_synth_t</a> * </td>
<td class="paramname"><em>synth</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>len</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float ** </td>
<td class="paramname"><em>left</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float ** </td>
<td class="paramname"><em>right</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float ** </td>
<td class="paramname"><em>fx_left</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float ** </td>
<td class="paramname"><em>fx_right</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Synthesize a block of floating point audio to separate audio buffers (multi-channel rendering). </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">synth</td><td>FluidSynth instance </td></tr>
<tr><td class="paramname">len</td><td>Count of audio frames to synthesize </td></tr>
<tr><td class="paramname">left</td><td>Array of float buffers to store left channel of planar audio (as many as <code>synth.audio-channels</code> buffers, each of <code>len</code> in size) </td></tr>
<tr><td class="paramname">right</td><td>Array of float buffers to store right channel of planar audio (size: ditto) </td></tr>
<tr><td class="paramname">fx_left</td><td>Since 1.1.7: If not <code>NULL</code>, array of float buffers to store left effect channels (as many as <code>synth.effects-channels</code> buffers, each of <code>len</code> in size) </td></tr>
<tr><td class="paramname">fx_right</td><td>Since 1.1.7: If not <code>NULL</code>, array of float buffers to store right effect channels (size: ditto) </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__misc.html#gae4efb1c3ce0d550c922504adfb0fb886" title="Value that indicates success, used by most libfluidsynth functions.">FLUID_OK</a> on success, <a class="el" href="group__misc.html#ga90e8bdbc5a507bbfa5c45bac85a63a61" title="Value that indicates failure, used by most libfluidsynth functions.">FLUID_FAILED</a> otherwise</dd></dl>
<p>First effect channel used by reverb, second for chorus.</p>
<dl class="section note"><dt>Note</dt><dd>Should only be called from synthesis thread.</dd></dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000008">Deprecated:</a></b></dt><dd><a class="el" href="group__audio__rendering.html#ga9528a3e544c0e26e80f316414d954040" title="Synthesize a block of floating point audio to separate audio buffers (multi-channel rendering).">fluid_synth_nwrite_float()</a> is deprecated and will be removed in a future release. It may continue to work or it may return <a class="el" href="group__misc.html#ga90e8bdbc5a507bbfa5c45bac85a63a61" title="Value that indicates failure, used by most libfluidsynth functions.">FLUID_FAILED</a> in the future. Consider using the more powerful and flexible <a class="el" href="group__audio__rendering.html#gaf41e26b153a095dbc4248e9df4f3ad46" title="Synthesize floating point audio to stereo audio channels (implements the default interface fluid_audi...">fluid_synth_process()</a>.</dd></dl>
<p>Usage example: </p><div class="fragment"><div class="line"><span class="keyword">const</span> <span class="keywordtype">int</span> FramesToRender = 64;</div>
<div class="line"><span class="keywordtype">int</span> channels;</div>
<div class="line"><span class="comment">// retrieve number of stereo audio channels</span></div>
<div class="line"><a class="code" href="group__settings.html#gaab27c7ececd6d51f9c9d84cacacf3919">fluid_settings_getint</a>(settings, <span class="stringliteral">"synth.audio-channels"</span>, &channels);</div>
<div class="line"> </div>
<div class="line"><span class="comment">// we need twice as many (mono-)buffers</span></div>
<div class="line">channels *= 2;</div>
<div class="line"> </div>
<div class="line"><span class="comment">// fluid_synth_nwrite_float renders planar audio, e.g. if synth.audio-channels==16:</span></div>
<div class="line"><span class="comment">// each midi channel gets rendered to its own stereo buffer, rather than having</span></div>
<div class="line"><span class="comment">// one buffer and interleaved PCM</span></div>
<div class="line"><span class="keywordtype">float</span>** mix_buf = <span class="keyword">new</span> <span class="keywordtype">float</span>*[channels];</div>
<div class="line"><span class="keywordflow">for</span>(<span class="keywordtype">int</span> i = 0; i < channels; i++)</div>
<div class="line">{</div>
<div class="line"> mix_buf[i] = <span class="keyword">new</span> <span class="keywordtype">float</span>[FramesToRender];</div>
<div class="line">}</div>
<div class="line"> </div>
<div class="line"><span class="comment">// retrieve number of (stereo) effect channels (internally hardcoded to reverb (first chan)</span></div>
<div class="line"><span class="comment">// and chrous (second chan))</span></div>
<div class="line"><a class="code" href="group__settings.html#gaab27c7ececd6d51f9c9d84cacacf3919">fluid_settings_getint</a>(settings, <span class="stringliteral">"synth.effects-channels"</span>, &channels);</div>
<div class="line">channels *= 2;</div>
<div class="line"> </div>
<div class="line"><span class="keywordtype">float</span>** fx_buf = <span class="keyword">new</span> <span class="keywordtype">float</span>*[channels];</div>
<div class="line"><span class="keywordflow">for</span>(<span class="keywordtype">int</span> i = 0; i < channels; i++)</div>
<div class="line">{</div>
<div class="line"> fx_buf[i] = <span class="keyword">new</span> <span class="keywordtype">float</span>[FramesToRender];</div>
<div class="line">}</div>
<div class="line"> </div>
<div class="line"><span class="keywordtype">float</span>** mix_buf_l = mix_buf;</div>
<div class="line"><span class="keywordtype">float</span>** mix_buf_r = &mix_buf[channels/2];</div>
<div class="line"> </div>
<div class="line"><span class="keywordtype">float</span>** fx_buf_l = fx_buf;</div>
<div class="line"><span class="keywordtype">float</span>** fx_buf_r = &fx_buf[channels/2];</div>
<div class="line"> </div>
<div class="line"><a class="code" href="group__audio__rendering.html#ga9528a3e544c0e26e80f316414d954040">fluid_synth_nwrite_float</a>(synth, FramesToRender, mix_buf_l, mix_buf_r, fx_buf_l, fx_buf_r)</div>
<div class="ttc" id="agroup__audio__rendering_html_ga9528a3e544c0e26e80f316414d954040"><div class="ttname"><a href="group__audio__rendering.html#ga9528a3e544c0e26e80f316414d954040">fluid_synth_nwrite_float</a></div><div class="ttdeci">int fluid_synth_nwrite_float(fluid_synth_t *synth, int len, float **left, float **right, float **fx_left, float **fx_right)</div><div class="ttdoc">Synthesize a block of floating point audio to separate audio buffers (multi-channel rendering).</div><div class="ttdef"><b>Definition:</b> fluid_synth.c:4128</div></div>
<div class="ttc" id="agroup__settings_html_gaab27c7ececd6d51f9c9d84cacacf3919"><div class="ttname"><a href="group__settings.html#gaab27c7ececd6d51f9c9d84cacacf3919">fluid_settings_getint</a></div><div class="ttdeci">int fluid_settings_getint(fluid_settings_t *settings, const char *name, int *val)</div><div class="ttdoc">Get an integer value setting.</div><div class="ttdef"><b>Definition:</b> fluid_settings.c:1591</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="gaf41e26b153a095dbc4248e9df4f3ad46"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf41e26b153a095dbc4248e9df4f3ad46">◆ </a></span>fluid_synth_process()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int fluid_synth_process </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__Types.html#gae265f10ae174a13afe010de50d87e1a4">fluid_synth_t</a> * </td>
<td class="paramname"><em>synth</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>len</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>nfx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float * </td>
<td class="paramname"><em>fx</em>[], </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>nout</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float * </td>
<td class="paramname"><em>out</em>[] </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Synthesize floating point audio to stereo audio channels (implements the default interface <a class="el" href="group__audio__driver.html#ga4c108916c658973df5242ae77fefa3d0" title="Callback function type used with new_fluid_audio_driver2() to allow for custom user audio processing ...">fluid_audio_func_t</a>). </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">synth</td><td>FluidSynth instance</td></tr>
<tr><td class="paramname">len</td><td>Count of audio frames to synthesize and store in every single buffer provided by <code>out</code> and <code>fx</code>. Zero value is permitted, the function does nothing and return FLUID_OK.</td></tr>
<tr><td class="paramname">nfx</td><td>Count of arrays in <code>fx</code>. Must be a multiple of 2 (because of stereo) and in the range <code>0 <= nfx/2 <= (<a class="el" href="group__synthesis__params.html#gabacb45dc50c05b7a0bb7229df3081b1b" title="Get the total number of allocated effects channels.">fluid_synth_count_effects_channels()</a> * <a class="el" href="group__synthesis__params.html#ga2b4731bf062b674937f11db9395360be" title="Get the total number of allocated effects units.">fluid_synth_count_effects_groups()</a>)</code>. Note that zero value is valid and allows to skip mixing effects in all fx output buffers.</td></tr>
<tr><td class="paramname">fx</td><td>Array of buffers to store effects audio to. Buffers may alias with buffers of <code>out</code>. Individual NULL buffers are permitted and will cause to skip mixing any audio into that buffer.</td></tr>
<tr><td class="paramname">nout</td><td>Count of arrays in <code>out</code>. Must be a multiple of 2 (because of stereo) and in the range <code>0 <= nout/2 <= <a class="el" href="group__synthesis__params.html#gafd0280f9f3e9d9aae14a7a9dc02edea7" title="Get the total count of audio channels.">fluid_synth_count_audio_channels()</a></code>. Note that zero value is valid and allows to skip mixing dry audio in all out output buffers.</td></tr>
<tr><td class="paramname">out</td><td>Array of buffers to store (dry) audio to. Buffers may alias with buffers of <code>fx</code>. Individual NULL buffers are permitted and will cause to skip mixing any audio into that buffer.</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__misc.html#gae4efb1c3ce0d550c922504adfb0fb886" title="Value that indicates success, used by most libfluidsynth functions.">FLUID_OK</a> on success, <a class="el" href="group__misc.html#ga90e8bdbc5a507bbfa5c45bac85a63a61" title="Value that indicates failure, used by most libfluidsynth functions.">FLUID_FAILED</a> otherwise,<ul>
<li><code>fx == NULL</code> while <code>nfx > 0</code>, or <code>out == NULL</code> while <code>nout > 0</code>.</li>
<li><code>nfx</code> or <code>nout</code> not multiple of 2.</li>
<li><code>len < 0</code>.</li>
<li><code>nfx</code> or <code>nout</code> exceed the range explained above.</li>
</ul>
</dd></dl>
<p>Synthesize and <b>mix</b> audio to a given number of planar audio buffers. Therefore pass <code>nout = N*2</code> float buffers to <code>out</code> in order to render the synthesized audio to <code>N</code> stereo channels. Each float buffer must be able to hold <code>len</code> elements.</p>
<p><code>out</code> contains an array of planar buffers for normal, dry, stereo audio (alternating left and right). Like: </p><div class="fragment"><div class="line">out[0] = left_buffer_audio_channel_0</div>
<div class="line">out[1] = right_buffer_audio_channel_0</div>
<div class="line">out[2] = left_buffer_audio_channel_1</div>
<div class="line">out[3] = right_buffer_audio_channel_1</div>
<div class="line">...</div>
<div class="line">out[ (i * 2 + 0) % nout ] = left_buffer_audio_channel_i</div>
<div class="line">out[ (i * 2 + 1) % nout ] = right_buffer_audio_channel_i</div>
</div><!-- fragment --><p>for zero-based channel index <code>i</code>. The buffer layout of <code>fx</code> used for storing effects like reverb and chorus looks similar: </p><div class="fragment"><div class="line">fx[0] = left_buffer_channel_of_reverb_unit_0</div>
<div class="line">fx[1] = right_buffer_channel_of_reverb_unit_0</div>
<div class="line">fx[2] = left_buffer_channel_of_chorus_unit_0</div>
<div class="line">fx[3] = right_buffer_channel_of_chorus_unit_0</div>
<div class="line">fx[4] = left_buffer_channel_of_reverb_unit_1</div>
<div class="line">fx[5] = right_buffer_channel_of_reverb_unit_1</div>
<div class="line">fx[6] = left_buffer_channel_of_chorus_unit_1</div>
<div class="line">fx[7] = right_buffer_channel_of_chorus_unit_1</div>
<div class="line">fx[8] = left_buffer_channel_of_reverb_unit_2</div>
<div class="line">...</div>
<div class="line">fx[ ((k * <a class="code" href="group__synthesis__params.html#gabacb45dc50c05b7a0bb7229df3081b1b">fluid_synth_count_effects_channels</a>() + j) * 2 + 0) % nfx ] = left_buffer_for_effect_channel_j_of_unit_k</div>
<div class="line">fx[ ((k * <a class="code" href="group__synthesis__params.html#gabacb45dc50c05b7a0bb7229df3081b1b">fluid_synth_count_effects_channels</a>() + j) * 2 + 1) % nfx ] = right_buffer_for_effect_channel_j_of_unit_k</div>
<div class="ttc" id="agroup__synthesis__params_html_gabacb45dc50c05b7a0bb7229df3081b1b"><div class="ttname"><a href="group__synthesis__params.html#gabacb45dc50c05b7a0bb7229df3081b1b">fluid_synth_count_effects_channels</a></div><div class="ttdeci">int fluid_synth_count_effects_channels(fluid_synth_t *synth)</div><div class="ttdoc">Get the total number of allocated effects channels.</div><div class="ttdef"><b>Definition:</b> fluid_synth.c:7186</div></div>
</div><!-- fragment --><p> where <code>0 <= k < <a class="el" href="group__synthesis__params.html#ga2b4731bf062b674937f11db9395360be" title="Get the total number of allocated effects units.">fluid_synth_count_effects_groups()</a></code> is a zero-based index denoting the effects unit and <code>0 <= j < <a class="el" href="group__synthesis__params.html#gabacb45dc50c05b7a0bb7229df3081b1b" title="Get the total number of allocated effects channels.">fluid_synth_count_effects_channels()</a></code> is a zero-based index denoting the effect channel within unit <code>k</code>.</p>
<p>Any playing voice is assigned to audio channels based on the MIDI channel it's playing on: Let <code>chan</code> be the zero-based MIDI channel index an arbitrary voice is playing on. To determine the audio channel and effects unit it is going to be rendered to use:</p>
<p><code>i = chan % <a class="el" href="group__synthesis__params.html#ga06915c22716afc8bab6f1e3b7e250f8d" title="Get the total number of allocated audio channels.">fluid_synth_count_audio_groups()</a></code></p>
<p><code>k = chan % <a class="el" href="group__synthesis__params.html#ga2b4731bf062b674937f11db9395360be" title="Get the total number of allocated effects units.">fluid_synth_count_effects_groups()</a></code></p>
<dl class="section note"><dt>Note</dt><dd>The owner of the sample buffers must zero them out before calling this function, because any synthesized audio is mixed (i.e. added) to the buffers. E.g. if <a class="el" href="group__audio__rendering.html#gaf41e26b153a095dbc4248e9df4f3ad46" title="Synthesize floating point audio to stereo audio channels (implements the default interface fluid_audi...">fluid_synth_process()</a> is called from a custom audio driver process function (see <a class="el" href="group__audio__driver.html#gad36d048b94952b23f7b3971bea39519f" title="Create a new audio driver.">new_fluid_audio_driver2()</a>), the audio driver takes care of zeroing the buffers. </dd></dl>
<dl class="section note"><dt>Note</dt><dd>No matter how many buffers you pass in, <a class="el" href="group__audio__rendering.html#gaf41e26b153a095dbc4248e9df4f3ad46" title="Synthesize floating point audio to stereo audio channels (implements the default interface fluid_audi...">fluid_synth_process()</a> will always render all audio channels to the buffers in <code>out</code> and all effects channels to the buffers in <code>fx</code>, provided that <code>nout > 0</code> and <code>nfx > 0</code> respectively. If <code>nout/2 < <a class="el" href="group__synthesis__params.html#gafd0280f9f3e9d9aae14a7a9dc02edea7" title="Get the total count of audio channels.">fluid_synth_count_audio_channels()</a></code> it will wrap around. Same is true for effects audio if <code>nfx/2 < (<a class="el" href="group__synthesis__params.html#gabacb45dc50c05b7a0bb7229df3081b1b" title="Get the total number of allocated effects channels.">fluid_synth_count_effects_channels()</a> * <a class="el" href="group__synthesis__params.html#ga2b4731bf062b674937f11db9395360be" title="Get the total number of allocated effects units.">fluid_synth_count_effects_groups()</a>)</code>. See usage examples below. </dd></dl>
<dl class="section note"><dt>Note</dt><dd>Should only be called from synthesis thread. </dd></dl>
<dl class="section examples"><dt>Examples</dt><dd><a class="el" href="fluidsynth_fx_8c-example.html#a0">fluidsynth_fx.c</a>, and <a class="el" href="fluidsynth_process_8c-example.html#a0">fluidsynth_process.c</a>.</dd>
</dl>
</div>
</div>
<a id="ga7db368da2d74a73d05feaff4a6bb1da4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga7db368da2d74a73d05feaff4a6bb1da4">◆ </a></span>fluid_synth_write_float()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int fluid_synth_write_float </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__Types.html#gae265f10ae174a13afe010de50d87e1a4">fluid_synth_t</a> * </td>
<td class="paramname"><em>synth</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>len</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">void * </td>
<td class="paramname"><em>lout</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>loff</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>lincr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">void * </td>
<td class="paramname"><em>rout</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>roff</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>rincr</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Synthesize a block of floating point audio samples to audio buffers. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">synth</td><td>FluidSynth instance </td></tr>
<tr><td class="paramname">len</td><td>Count of audio frames to synthesize </td></tr>
<tr><td class="paramname">lout</td><td>Array of floats to store left channel of audio </td></tr>
<tr><td class="paramname">loff</td><td>Offset index in 'lout' for first sample </td></tr>
<tr><td class="paramname">lincr</td><td>Increment between samples stored to 'lout' </td></tr>
<tr><td class="paramname">rout</td><td>Array of floats to store right channel of audio </td></tr>
<tr><td class="paramname">roff</td><td>Offset index in 'rout' for first sample </td></tr>
<tr><td class="paramname">rincr</td><td>Increment between samples stored to 'rout' </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__misc.html#gae4efb1c3ce0d550c922504adfb0fb886" title="Value that indicates success, used by most libfluidsynth functions.">FLUID_OK</a> on success, <a class="el" href="group__misc.html#ga90e8bdbc5a507bbfa5c45bac85a63a61" title="Value that indicates failure, used by most libfluidsynth functions.">FLUID_FAILED</a> otherwise</dd></dl>
<p>Useful for storing interleaved stereo (lout = rout, loff = 0, roff = 1, lincr = 2, rincr = 2).</p>
<dl class="section note"><dt>Note</dt><dd>Should only be called from synthesis thread. </dd>
<dd>
Reverb and Chorus are mixed to <code>lout</code> resp. <code>rout</code>. </dd></dl>
</div>
</div>
<a id="ga6b88528d1ea6322582314197488afab7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga6b88528d1ea6322582314197488afab7">◆ </a></span>fluid_synth_write_s16()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int fluid_synth_write_s16 </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__Types.html#gae265f10ae174a13afe010de50d87e1a4">fluid_synth_t</a> * </td>
<td class="paramname"><em>synth</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>len</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">void * </td>
<td class="paramname"><em>lout</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>loff</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>lincr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">void * </td>
<td class="paramname"><em>rout</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>roff</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>rincr</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Synthesize a block of 16 bit audio samples to audio buffers. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">synth</td><td>FluidSynth instance </td></tr>
<tr><td class="paramname">len</td><td>Count of audio frames to synthesize </td></tr>
<tr><td class="paramname">lout</td><td>Array of 16 bit words to store left channel of audio </td></tr>
<tr><td class="paramname">loff</td><td>Offset index in 'lout' for first sample </td></tr>
<tr><td class="paramname">lincr</td><td>Increment between samples stored to 'lout' </td></tr>
<tr><td class="paramname">rout</td><td>Array of 16 bit words to store right channel of audio </td></tr>
<tr><td class="paramname">roff</td><td>Offset index in 'rout' for first sample </td></tr>
<tr><td class="paramname">rincr</td><td>Increment between samples stored to 'rout' </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__misc.html#gae4efb1c3ce0d550c922504adfb0fb886" title="Value that indicates success, used by most libfluidsynth functions.">FLUID_OK</a> on success, <a class="el" href="group__misc.html#ga90e8bdbc5a507bbfa5c45bac85a63a61" title="Value that indicates failure, used by most libfluidsynth functions.">FLUID_FAILED</a> otherwise</dd></dl>
<p>Useful for storing interleaved stereo (lout = rout, loff = 0, roff = 1, lincr = 2, rincr = 2).</p>
<dl class="section note"><dt>Note</dt><dd>Should only be called from synthesis thread. </dd>
<dd>
Reverb and Chorus are mixed to <code>lout</code> resp. <code>rout</code>. </dd>
<dd>
Dithering is performed when converting from internal floating point to 16 bit audio. </dd></dl>
</div>
</div>
<a id="gafe93f25a4a6a479b5344c55fe1260281"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gafe93f25a4a6a479b5344c55fe1260281">◆ </a></span>fluid_synth_write_s24()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int fluid_synth_write_s24 </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__Types.html#gae265f10ae174a13afe010de50d87e1a4">fluid_synth_t</a> * </td>
<td class="paramname"><em>synth</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>len</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">void * </td>
<td class="paramname"><em>lout</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>loff</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>lincr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">void * </td>
<td class="paramname"><em>rout</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>roff</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>rincr</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Synthesize a block of 24 bit audio samples to audio buffers. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">synth</td><td>FluidSynth instance </td></tr>
<tr><td class="paramname">len</td><td>Count of audio frames to synthesize </td></tr>
<tr><td class="paramname">lout</td><td>Array of 32 bit words to store left channel of audio </td></tr>
<tr><td class="paramname">loff</td><td>Offset index in 'lout' for first sample </td></tr>
<tr><td class="paramname">lincr</td><td>Increment between samples stored to 'lout' </td></tr>
<tr><td class="paramname">rout</td><td>Array of 32 bit words to store right channel of audio </td></tr>
<tr><td class="paramname">roff</td><td>Offset index in 'rout' for first sample </td></tr>
<tr><td class="paramname">rincr</td><td>Increment between samples stored to 'rout' </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__misc.html#gae4efb1c3ce0d550c922504adfb0fb886" title="Value that indicates success, used by most libfluidsynth functions.">FLUID_OK</a> on success, <a class="el" href="group__misc.html#ga90e8bdbc5a507bbfa5c45bac85a63a61" title="Value that indicates failure, used by most libfluidsynth functions.">FLUID_FAILED</a> otherwise</dd></dl>
<p>Useful for storing interleaved stereo (lout = rout, loff = 0, roff = 1, lincr = 2, rincr = 2).</p>
<dl class="section note"><dt>Note</dt><dd>Should only be called from synthesis thread. </dd>
<dd>
Reverb and Chorus are mixed to <code>lout</code> resp. <code>rout</code>. </dd>
<dd>
Output is left-aligned signed 24-bit PCM (24-in-32), produced by clearing the least significant byte after 32-bit conversion from internal floating point. No dithering is performed. </dd></dl>
</div>
</div>
<a id="ga7aa37d65824705dd3a13647f6bcb50fc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga7aa37d65824705dd3a13647f6bcb50fc">◆ </a></span>fluid_synth_write_s32()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int fluid_synth_write_s32 </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__Types.html#gae265f10ae174a13afe010de50d87e1a4">fluid_synth_t</a> * </td>
<td class="paramname"><em>synth</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>len</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">void * </td>
<td class="paramname"><em>lout</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>loff</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>lincr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">void * </td>
<td class="paramname"><em>rout</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>roff</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>rincr</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Synthesize a block of 32 bit audio samples to audio buffers. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">synth</td><td>FluidSynth instance </td></tr>
<tr><td class="paramname">len</td><td>Count of audio frames to synthesize </td></tr>
<tr><td class="paramname">lout</td><td>Array of 32 bit words to store left channel of audio </td></tr>
<tr><td class="paramname">loff</td><td>Offset index in 'lout' for first sample </td></tr>
<tr><td class="paramname">lincr</td><td>Increment between samples stored to 'lout' </td></tr>
<tr><td class="paramname">rout</td><td>Array of 32 bit words to store right channel of audio </td></tr>
<tr><td class="paramname">roff</td><td>Offset index in 'rout' for first sample </td></tr>
<tr><td class="paramname">rincr</td><td>Increment between samples stored to 'rout' </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__misc.html#gae4efb1c3ce0d550c922504adfb0fb886" title="Value that indicates success, used by most libfluidsynth functions.">FLUID_OK</a> on success, <a class="el" href="group__misc.html#ga90e8bdbc5a507bbfa5c45bac85a63a61" title="Value that indicates failure, used by most libfluidsynth functions.">FLUID_FAILED</a> otherwise</dd></dl>
<p>Useful for storing interleaved stereo (lout = rout, loff = 0, roff = 1, lincr = 2, rincr = 2).</p>
<dl class="section note"><dt>Note</dt><dd>Should only be called from synthesis thread. </dd>
<dd>
Reverb and Chorus are mixed to <code>lout</code> resp. <code>rout</code>. </dd>
<dd>
Output is signed 32-bit PCM (int32_t), produced by round-and-clip conversion from internal floating point. No dithering is performed. </dd></dl>
</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
</body>
</html>