File: group__audio__decode.html

package info (click to toggle)
libquicktime 2%3A1.0.2%2Bdebian-2
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 6,496 kB
  • ctags: 6,233
  • sloc: ansic: 48,217; sh: 10,075; makefile: 425; sed: 16
file content (837 lines) | stat: -rw-r--r-- 46,090 bytes parent folder | download
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>libquicktime: Audio decoding</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.3 -->
<div class="tabs">
  <ul>
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="modules.html"><span>Modules</span></a></li>
    <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
    <li><a href="files.html"><span>Files</span></a></li>
    <li><a href="dirs.html"><span>Directories</span></a></li>
  </ul>
</div>
<h1>Audio decoding<br>
<small>
[<a class="el" href="group__audio.html">Audio</a>]</small>
</h1>Audio related definitions and functions (reading).  
<a href="#_details">More...</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">long&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__audio__decode.html#g73add06ff6dcf50a806596c6e39fed14">quicktime_audio_length</a> (<a class="el" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> *file, int track)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the audio length.  <a href="#g73add06ff6dcf50a806596c6e39fed14"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">long&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__audio__decode.html#gf81ed5f7a3801c1387e389ec2f08ea34">quicktime_audio_position</a> (<a class="el" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> *file, int track)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the audio position.  <a href="#gf81ed5f7a3801c1387e389ec2f08ea34"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__audio__decode.html#g5e42c53037d62306e27886aa5bd7215f">quicktime_audio_tracks</a> (<a class="el" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> *file)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the number of audio tracks.  <a href="#g5e42c53037d62306e27886aa5bd7215f"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__audio__decode.html#gd8fab2c601a024a65ce814fbf0d75fe5">quicktime_has_audio</a> (<a class="el" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> *file)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Check if a file has at least one audio track.  <a href="#gd8fab2c601a024a65ce814fbf0d75fe5"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">long&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__audio__decode.html#g3842e80013742ccf947ccdc622b7fc39">quicktime_sample_rate</a> (<a class="el" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> *file, int track)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the samplerate of an audio track.  <a href="#g3842e80013742ccf947ccdc622b7fc39"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__audio__decode.html#g2f87633dd353e14528542fcbdb91e49c">quicktime_audio_bits</a> (<a class="el" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> *file, int track)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the bits per sample of an audio track.  <a href="#g2f87633dd353e14528542fcbdb91e49c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__audio__decode.html#g4a144a36a8c030a95b286b13e0000065">quicktime_track_channels</a> (<a class="el" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> *file, int track)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the number of channels of an audio track.  <a href="#g4a144a36a8c030a95b286b13e0000065"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__audio__decode.html#gcaa38f0a3b49b86703a98055bd8f14e4">quicktime_audio_compressor</a> (<a class="el" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> *file, int track)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the four character code of an audio track.  <a href="#gcaa38f0a3b49b86703a98055bd8f14e4"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__audio__decode.html#g1b81bfad233e5147c7072c85b677822b">quicktime_channel_location</a> (<a class="el" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> *file, int *quicktime_track, int *quicktime_channel, int channel)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__audio__decode.html#g53a8478f9f132f5c9531e0e9d3a748bb">quicktime_set_audio_position</a> (<a class="el" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> *file, int64_t sample, int track)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Seek to a specific audio position.  <a href="#g53a8478f9f132f5c9531e0e9d3a748bb"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__audio__decode.html#g4682b20d2bc8526ee10c30967dcff255">quicktime_supported_audio</a> (<a class="el" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> *file, int track)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Check if an audio track is supported by libquicktime.  <a href="#g4682b20d2bc8526ee10c30967dcff255"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__audio__decode.html#g9c930df50ed2c2f037a4c1423a2eb61a">quicktime_decode_audio</a> (<a class="el" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> *file, int16_t *output_i, float *output_f, long samples, int channel)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Decode a number of audio samples of a single channel.  <a href="#g9c930df50ed2c2f037a4c1423a2eb61a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__audio__decode.html#g73483ca19aaadddf7f274806b4eed60e">lqt_decode_audio</a> (<a class="el" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> *file, int16_t **output_i, float **output_f, long samples)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Decode all channels from all tracks at once.  <a href="#g73483ca19aaadddf7f274806b4eed60e"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int64_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__audio__decode.html#gaf762239a7ebae6f9933b2bf28bb8ded">lqt_last_audio_position</a> (<a class="el" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> *file, int track)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the position of the last decoded sample.  <a href="#gaf762239a7ebae6f9933b2bf28bb8ded"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__audio__decode.html#ge5f1a8c618d48a333b0bcdf4321c42f6">lqt_decode_audio_track</a> (<a class="el" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> *file, int16_t **output_i, float **output_f, long samples, int track)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Decode a number of audio samples.  <a href="#ge5f1a8c618d48a333b0bcdf4321c42f6"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__audio__decode.html#g8143c4405296ba9b61ff2ac69722b12b">lqt_decode_audio_raw</a> (<a class="el" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> *file, void *output, long samples, int track)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Decode audio in the native sampleformat of the codec.  <a href="#g8143c4405296ba9b61ff2ac69722b12b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__audio__decode.html#gd8b145454f48ef5ddef2f0651986da5f">lqt_get_audio_language</a> (<a class="el" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> *file, int track, char *language)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the audio language.  <a href="#gd8b145454f48ef5ddef2f0651986da5f"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__audio__decode.html#g0e3591ef0f39afa72369a79ccdd48278">lqt_total_channels</a> (<a class="el" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> *file)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the total number of audio channels across all tracks.  <a href="#g0e3591ef0f39afa72369a79ccdd48278"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Audio related definitions and functions (reading). 
<p>
The audio API changed a lot during the last years (causing lot of confusion), so here is the preferred way: First get the number of audio tracks with <a class="el" href="group__audio__decode.html#g5e42c53037d62306e27886aa5bd7215f">quicktime_audio_tracks</a>. Then for each track you want to decode, use <a class="el" href="group__audio__decode.html#g4682b20d2bc8526ee10c30967dcff255">quicktime_supported_audio</a> to verify that a codec is available. Then get the audio format with <a class="el" href="group__audio__decode.html#g4a144a36a8c030a95b286b13e0000065">quicktime_track_channels</a> and <a class="el" href="group__audio__decode.html#g3842e80013742ccf947ccdc622b7fc39">quicktime_sample_rate</a> . Then use <a class="el" href="group__audio__decode.html#ge5f1a8c618d48a333b0bcdf4321c42f6">lqt_decode_audio_track</a> to decode noninterleaved channels in either 16bit integer or floating point [-1.0..1.0] format. This method will convert all internally used formats to the datatypes you want, but won't output the full precision for 24/32 bit formats. If you want the samples as raw as possible (bypassing all internal sample format conversions), use <a class="el" href="group__audio.html#gbde4021e8da716ad38a91c238aa40df0">lqt_get_sample_format</a> to get the sampleformat natively used by the codec and <a class="el" href="group__audio__decode.html#g8143c4405296ba9b61ff2ac69722b12b">lqt_decode_audio_raw</a> to decode it. <hr><h2>Function Documentation</h2>
<a class="anchor" name="g73add06ff6dcf50a806596c6e39fed14"></a><!-- doxytag: member="quicktime.h::quicktime_audio_length" ref="g73add06ff6dcf50a806596c6e39fed14" args="(quicktime_t *file, int track)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">long quicktime_audio_length           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> *&nbsp;</td>
          <td class="paramname"> <em>file</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>track</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Get the audio length. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>file</em>&nbsp;</td><td>A quicktime handle </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>track</em>&nbsp;</td><td>index (starting with 0) </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The total number of uncompressed audio samples in the track </dd></dl>

</div>
</div><p>
<a class="anchor" name="gf81ed5f7a3801c1387e389ec2f08ea34"></a><!-- doxytag: member="quicktime.h::quicktime_audio_position" ref="gf81ed5f7a3801c1387e389ec2f08ea34" args="(quicktime_t *file, int track)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">long quicktime_audio_position           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> *&nbsp;</td>
          <td class="paramname"> <em>file</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>track</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Get the audio position. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>file</em>&nbsp;</td><td>A quicktime handle </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>track</em>&nbsp;</td><td>index (starting with 0) </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The number (starting with 0) of the next sample to be decoded. </dd></dl>

</div>
</div><p>
<a class="anchor" name="g5e42c53037d62306e27886aa5bd7215f"></a><!-- doxytag: member="quicktime.h::quicktime_audio_tracks" ref="g5e42c53037d62306e27886aa5bd7215f" args="(quicktime_t *file)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int quicktime_audio_tracks           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> *&nbsp;</td>
          <td class="paramname"> <em>file</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Get the number of audio tracks. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>file</em>&nbsp;</td><td>A quicktime handle </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The number of audio tracks </dd></dl>

</div>
</div><p>
<a class="anchor" name="gd8fab2c601a024a65ce814fbf0d75fe5"></a><!-- doxytag: member="quicktime.h::quicktime_has_audio" ref="gd8fab2c601a024a65ce814fbf0d75fe5" args="(quicktime_t *file)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int quicktime_has_audio           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> *&nbsp;</td>
          <td class="paramname"> <em>file</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Check if a file has at least one audio track. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>file</em>&nbsp;</td><td>A quicktime handle </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>1 if the file has audio tracks, 0 else </dd></dl>

</div>
</div><p>
<a class="anchor" name="g3842e80013742ccf947ccdc622b7fc39"></a><!-- doxytag: member="quicktime.h::quicktime_sample_rate" ref="g3842e80013742ccf947ccdc622b7fc39" args="(quicktime_t *file, int track)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">long quicktime_sample_rate           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> *&nbsp;</td>
          <td class="paramname"> <em>file</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>track</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Get the samplerate of an audio track. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>file</em>&nbsp;</td><td>A quicktime handle </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>track</em>&nbsp;</td><td>index (starting with 0) </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The samplerate in Hz </dd></dl>

</div>
</div><p>
<a class="anchor" name="g2f87633dd353e14528542fcbdb91e49c"></a><!-- doxytag: member="quicktime.h::quicktime_audio_bits" ref="g2f87633dd353e14528542fcbdb91e49c" args="(quicktime_t *file, int track)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int quicktime_audio_bits           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> *&nbsp;</td>
          <td class="paramname"> <em>file</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>track</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Get the bits per sample of an audio track. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>file</em>&nbsp;</td><td>A quicktime handle </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>track</em>&nbsp;</td><td>index (starting with 0) </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The bits per sample (typically 16)</dd></dl>
Don't use this function for anything else than for informational purposes. Bits per sample is meaningless for compressed codecs, and sometimes plain wrong even for uncompressed ones.<p>
To get some better informations about the resolution, a codec will deliver, use <a class="el" href="group__audio.html#gbde4021e8da716ad38a91c238aa40df0">lqt_get_sample_format</a> 
</div>
</div><p>
<a class="anchor" name="g4a144a36a8c030a95b286b13e0000065"></a><!-- doxytag: member="quicktime.h::quicktime_track_channels" ref="g4a144a36a8c030a95b286b13e0000065" args="(quicktime_t *file, int track)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int quicktime_track_channels           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> *&nbsp;</td>
          <td class="paramname"> <em>file</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>track</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Get the number of channels of an audio track. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>file</em>&nbsp;</td><td>A quicktime handle </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>track</em>&nbsp;</td><td>index (starting with 0) </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The the number of channels </dd></dl>

</div>
</div><p>
<a class="anchor" name="gcaa38f0a3b49b86703a98055bd8f14e4"></a><!-- doxytag: member="quicktime.h::quicktime_audio_compressor" ref="gcaa38f0a3b49b86703a98055bd8f14e4" args="(quicktime_t *file, int track)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char* quicktime_audio_compressor           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> *&nbsp;</td>
          <td class="paramname"> <em>file</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>track</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Get the four character code of an audio track. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>file</em>&nbsp;</td><td>A quicktime handle </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>track</em>&nbsp;</td><td>index (starting with 0) </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The four character code (fourcc) of the track.</dd></dl>
Note, that this function might return nothing meaningful for AVI files, since AVI doesn't use four character codes for audio streams. To get more save information about the codec responsible for the stream, use <a class="el" href="group__codec__registry.html#g8c72d41f05a9ea5900c2d92639fab107">lqt_audio_codec_from_file</a> . 
</div>
</div><p>
<a class="anchor" name="g1b81bfad233e5147c7072c85b677822b"></a><!-- doxytag: member="quicktime.h::quicktime_channel_location" ref="g1b81bfad233e5147c7072c85b677822b" args="(quicktime_t *file, int *quicktime_track, int *quicktime_channel, int channel)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int quicktime_channel_location           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> *&nbsp;</td>
          <td class="paramname"> <em>file</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&nbsp;</td>
          <td class="paramname"> <em>quicktime_track</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&nbsp;</td>
          <td class="paramname"> <em>quicktime_channel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>channel</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>file</em>&nbsp;</td><td>A quicktime handle </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>quicktime_track</em>&nbsp;</td><td>Returns the index of the quicktime track </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>quicktime_channel</em>&nbsp;</td><td>Returns the channel index inside the quicktime track </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>channel</em>&nbsp;</td><td>The channel to query</td></tr>
  </table>
</dl>
Don't use this function (see <a class="el" href="group__audio__decode.html#g73483ca19aaadddf7f274806b4eed60e">lqt_decode_audio</a> ) 
</div>
</div><p>
<a class="anchor" name="g53a8478f9f132f5c9531e0e9d3a748bb"></a><!-- doxytag: member="quicktime.h::quicktime_set_audio_position" ref="g53a8478f9f132f5c9531e0e9d3a748bb" args="(quicktime_t *file, int64_t sample, int track)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int quicktime_set_audio_position           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> *&nbsp;</td>
          <td class="paramname"> <em>file</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int64_t&nbsp;</td>
          <td class="paramname"> <em>sample</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>track</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Seek to a specific audio position. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>file</em>&nbsp;</td><td>A quicktime handle </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>sample</em>&nbsp;</td><td>The sample position (starting with 0) </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>track</em>&nbsp;</td><td>index (starting with 0)</td></tr>
  </table>
</dl>
Use this for seeking. During sequential decode calls, the position will be updated automatically 
</div>
</div><p>
<a class="anchor" name="g4682b20d2bc8526ee10c30967dcff255"></a><!-- doxytag: member="quicktime.h::quicktime_supported_audio" ref="g4682b20d2bc8526ee10c30967dcff255" args="(quicktime_t *file, int track)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int quicktime_supported_audio           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> *&nbsp;</td>
          <td class="paramname"> <em>file</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>track</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Check if an audio track is supported by libquicktime. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>file</em>&nbsp;</td><td>A quicktime handle </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>track</em>&nbsp;</td><td>index (starting with 0) </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>1 if a codec for this track is available, 0 else </dd></dl>

</div>
</div><p>
<a class="anchor" name="g9c930df50ed2c2f037a4c1423a2eb61a"></a><!-- doxytag: member="quicktime.h::quicktime_decode_audio" ref="g9c930df50ed2c2f037a4c1423a2eb61a" args="(quicktime_t *file, int16_t *output_i, float *output_f, long samples, int channel)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int quicktime_decode_audio           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> *&nbsp;</td>
          <td class="paramname"> <em>file</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int16_t *&nbsp;</td>
          <td class="paramname"> <em>output_i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float *&nbsp;</td>
          <td class="paramname"> <em>output_f</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&nbsp;</td>
          <td class="paramname"> <em>samples</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>channel</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Decode a number of audio samples of a single channel. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>file</em>&nbsp;</td><td>A quicktime handle </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>output_i</em>&nbsp;</td><td>16 bit integer output buffer (or NULL) </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>output_f</em>&nbsp;</td><td>floating point output buffer (or NULL) </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>samples</em>&nbsp;</td><td>Number of samples to decode </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>channel</em>&nbsp;</td><td>Channel to decode</td></tr>
  </table>
</dl>
Never use this function: Decoding only one channel at once causes lots of internal overhead if you need all channels anyway. In this case, <a class="el" href="group__audio__decode.html#ge5f1a8c618d48a333b0bcdf4321c42f6">lqt_decode_audio_track</a> is the better choice. Furthermore, you won't be able to decode the full resolution for 24 and 32 bit codecs. To decode the maximum resolution, use <a class="el" href="group__audio__decode.html#g8143c4405296ba9b61ff2ac69722b12b">lqt_decode_audio_raw</a>.<p>
The number of actually decoded samples (and EOF) can be obtained with <a class="el" href="group__audio__decode.html#gaf762239a7ebae6f9933b2bf28bb8ded">lqt_last_audio_position</a> 
</div>
</div><p>
<a class="anchor" name="g73483ca19aaadddf7f274806b4eed60e"></a><!-- doxytag: member="lqt.h::lqt_decode_audio" ref="g73483ca19aaadddf7f274806b4eed60e" args="(quicktime_t *file, int16_t **output_i, float **output_f, long samples)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int lqt_decode_audio           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> *&nbsp;</td>
          <td class="paramname"> <em>file</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int16_t **&nbsp;</td>
          <td class="paramname"> <em>output_i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float **&nbsp;</td>
          <td class="paramname"> <em>output_f</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&nbsp;</td>
          <td class="paramname"> <em>samples</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Decode all channels from all tracks at once. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>file</em>&nbsp;</td><td>A quicktime handle </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>output_i</em>&nbsp;</td><td>16 bit integer output buffer (or NULL) </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>output_f</em>&nbsp;</td><td>floating point output buffer (or NULL) </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>samples</em>&nbsp;</td><td>How many samples to decode</td></tr>
  </table>
</dl>
quicktime4linux hides the concept of multiple audio tracks from the user. The idea was probably to put an arbitrary number of channels into a file regardless of the codec (some codecs don't support more than 2 channels). So in principle, this function does the same as <a class="el" href="group__audio__decode.html#g9c930df50ed2c2f037a4c1423a2eb61a">quicktime_decode_audio</a>, but it grabs all channels at once. Or if you want only some channels you can leave the channels you don't want = NULL in the output array. The output arrays must contain at least lqt_total_channels(file) elements.<p>
Libquicktime supports an arbitrary number of audio tracks, which can even have completely different formats and codecs. Therefore you should always use <a class="el" href="group__audio__decode.html#ge5f1a8c618d48a333b0bcdf4321c42f6">lqt_decode_audio_track</a> or <a class="el" href="group__audio__decode.html#g8143c4405296ba9b61ff2ac69722b12b">lqt_decode_audio_raw</a> to decode audio from a particular track.<p>
The number of actually decoded samples (and EOF) can be obtained with <a class="el" href="group__audio__decode.html#gaf762239a7ebae6f9933b2bf28bb8ded">lqt_last_audio_position</a> 
</div>
</div><p>
<a class="anchor" name="gaf762239a7ebae6f9933b2bf28bb8ded"></a><!-- doxytag: member="lqt.h::lqt_last_audio_position" ref="gaf762239a7ebae6f9933b2bf28bb8ded" args="(quicktime_t *file, int track)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int64_t lqt_last_audio_position           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> *&nbsp;</td>
          <td class="paramname"> <em>file</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>track</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Get the position of the last decoded sample. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>file</em>&nbsp;</td><td>A quicktime handle </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>track</em>&nbsp;</td><td>index (starting with 0) </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The position of the last decoded sample.</dd></dl>
Returns the position of the last decoded sample. It is updated by the codec in each decode call and resembles the true position of the stream. Therefore, after each decode call, the last position should increment by the number of samples you decoded. If it's smaller, it means, that no more samples are available and that the end of the track is reached. 
</div>
</div><p>
<a class="anchor" name="ge5f1a8c618d48a333b0bcdf4321c42f6"></a><!-- doxytag: member="lqt.h::lqt_decode_audio_track" ref="ge5f1a8c618d48a333b0bcdf4321c42f6" args="(quicktime_t *file, int16_t **output_i, float **output_f, long samples, int track)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int lqt_decode_audio_track           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> *&nbsp;</td>
          <td class="paramname"> <em>file</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int16_t **&nbsp;</td>
          <td class="paramname"> <em>output_i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float **&nbsp;</td>
          <td class="paramname"> <em>output_f</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&nbsp;</td>
          <td class="paramname"> <em>samples</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>track</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Decode a number of audio samples. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>file</em>&nbsp;</td><td>A quicktime handle </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>output_i</em>&nbsp;</td><td>16 bit integer output buffer (or NULL) </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>output_f</em>&nbsp;</td><td>floating point output buffer (or NULL) </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>samples</em>&nbsp;</td><td>Number of samples to decode </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>track</em>&nbsp;</td><td>index (starting with 0)</td></tr>
  </table>
</dl>
Decode a number of samples from an audio track. All channels are decoded at once. output_i and output_f point to noninterleaved arrays for each channel. Depending on what you need, set either output_i or output_f to NULL. If you want the full resolution also for 24/32 bits, use <a class="el" href="group__audio__decode.html#g8143c4405296ba9b61ff2ac69722b12b">lqt_decode_audio_raw</a> .<p>
The number of actually decoded samples (and EOF) can be obtained with <a class="el" href="group__audio__decode.html#gaf762239a7ebae6f9933b2bf28bb8ded">lqt_last_audio_position</a> 
</div>
</div><p>
<a class="anchor" name="g8143c4405296ba9b61ff2ac69722b12b"></a><!-- doxytag: member="lqt.h::lqt_decode_audio_raw" ref="g8143c4405296ba9b61ff2ac69722b12b" args="(quicktime_t *file, void *output, long samples, int track)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int lqt_decode_audio_raw           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> *&nbsp;</td>
          <td class="paramname"> <em>file</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&nbsp;</td>
          <td class="paramname"> <em>output</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&nbsp;</td>
          <td class="paramname"> <em>samples</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>track</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Decode audio in the native sampleformat of the codec. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>file</em>&nbsp;</td><td>A quicktime handle </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>output</em>&nbsp;</td><td>An array of interleaved samples </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>samples</em>&nbsp;</td><td>Number of samples to decode </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>track</em>&nbsp;</td><td>Track index (starting with 0) </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The number of actually decoded samples. 0 means end of track.</dd></dl>
This function bypasses all internal sampleformat conversion and allows full resolution output for up to 32 bit integer and 32 bit float. To check, which dataformat the samples will have, use <a class="el" href="group__audio.html#gbde4021e8da716ad38a91c238aa40df0">lqt_get_sample_format</a> .<p>
The number of actually decoded samples (and EOF) can be obtained with <a class="el" href="group__audio__decode.html#gaf762239a7ebae6f9933b2bf28bb8ded">lqt_last_audio_position</a> 
</div>
</div><p>
<a class="anchor" name="gd8b145454f48ef5ddef2f0651986da5f"></a><!-- doxytag: member="lqt.h::lqt_get_audio_language" ref="gd8b145454f48ef5ddef2f0651986da5f" args="(quicktime_t *file, int track, char *language)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int lqt_get_audio_language           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> *&nbsp;</td>
          <td class="paramname"> <em>file</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>track</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&nbsp;</td>
          <td class="paramname"> <em>language</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Get the audio language. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>file</em>&nbsp;</td><td>A quicktime handle </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>track</em>&nbsp;</td><td>Track index (starting with 0) </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>language</em>&nbsp;</td><td>Returns ISO-639 Language code </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>1 on success, 0 on error.</dd></dl>
The language code is a 3-character code, English is "eng", Japanese is "jpn". 
</div>
</div><p>
<a class="anchor" name="g0e3591ef0f39afa72369a79ccdd48278"></a><!-- doxytag: member="lqt.h::lqt_total_channels" ref="g0e3591ef0f39afa72369a79ccdd48278" args="(quicktime_t *file)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int lqt_total_channels           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> *&nbsp;</td>
          <td class="paramname"> <em>file</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Get the total number of audio channels across all tracks. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>file</em>&nbsp;</td><td>A quicktime handle </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The total channel count</dd></dl>
The result of this function is only meaningful in conjunction with <a class="el" href="group__audio__decode.html#g73483ca19aaadddf7f274806b4eed60e">lqt_decode_audio</a> . In the general case, you should expect the audio tracks in the file as completely independent. Use <a class="el" href="group__audio__decode.html#g4a144a36a8c030a95b286b13e0000065">quicktime_track_channels</a> instead. 
</div>
</div><p>
<hr size="1"><address style="text-align: right;"><small>Generated on Tue Jan 8 23:01:07 2008 for libquicktime by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.3 </small></address>
</body>
</html>